pub struct EuvLabelProps {
pub html_for: &'static str,
pub text: &'static str,
pub disabled: Signal<bool>,
pub class: Css,
}Expand description
Props for the euv_label component.
A label names a control through the for attribute, so the text is
both the visible caption and the accessible name of the control it
points at.
Fields§
§html_for: &'static strThe id of the control the label names.
text: &'static strThe visible label text.
disabled: Signal<bool>Whether the labelled control is disabled.
class: CssAn optional application class composed with the label classes.
Implementations§
Source§impl EuvLabelProps
impl EuvLabelProps
pub fn get_html_for(&self) -> &'static str
pub fn get_mut_html_for(&mut self) -> &mut &'static str
pub fn set_html_for(&mut self, val: &'static str) -> &mut Self
pub fn get_text(&self) -> &'static str
pub fn get_mut_text(&mut self) -> &mut &'static str
pub fn set_text(&mut self, val: &'static str) -> &mut Self
pub fn get_disabled(&self) -> Signal<bool>
pub fn get_mut_disabled(&mut self) -> &mut Signal<bool>
pub fn set_disabled(&mut self, val: Signal<bool>) -> &mut Self
pub fn get_class(&self) -> &Css
pub fn get_mut_class(&mut self) -> &mut Css
pub fn set_class(&mut self, val: Css) -> &mut Self
Trait Implementations§
Source§impl Clone for EuvLabelProps
impl Clone for EuvLabelProps
Source§impl Debug for EuvLabelProps
impl Debug for EuvLabelProps
Auto Trait Implementations§
impl Forget for EuvLabelProps
impl Freeze for EuvLabelProps
impl Move for EuvLabelProps
impl RefUnwindSafe for EuvLabelProps
impl Send for EuvLabelProps
impl Sync for EuvLabelProps
impl Unpin for EuvLabelProps
impl UnsafeUnpin for EuvLabelProps
impl UnwindSafe for EuvLabelProps
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more