pub struct EuvSwitchProps {
pub id: &'static str,
pub name: &'static str,
pub checked: Signal<bool>,
pub label: &'static str,
pub disabled: Signal<bool>,
}Expand description
Props for the euv_switch component.
Defines the strongly-typed interface for a toggle switch. The checked
state is owned by the caller through a Signal<bool> so the switch can
participate in two-way binding with the rest of the page.
Fields§
§id: &'static strThe unique identifier for the switch element.
name: &'static strThe HTML name attribute shared by switches in the same form group.
checked: Signal<bool>The boolean signal bound to the switch checked state.
label: &'static strThe label text displayed next to the switch.
disabled: Signal<bool>Whether the switch is disabled.
Implementations§
Source§impl EuvSwitchProps
impl EuvSwitchProps
pub fn get_id(&self) -> &'static str
pub fn get_mut_id(&mut self) -> &mut &'static str
pub fn set_id(&mut self, val: &'static str) -> &mut Self
pub fn get_name(&self) -> &'static str
pub fn get_mut_name(&mut self) -> &mut &'static str
pub fn set_name(&mut self, val: &'static str) -> &mut Self
pub fn get_checked(&self) -> Signal<bool>
pub fn get_mut_checked(&mut self) -> &mut Signal<bool>
pub fn set_checked(&mut self, val: Signal<bool>) -> &mut Self
pub fn get_label(&self) -> &'static str
pub fn get_mut_label(&mut self) -> &mut &'static str
pub fn set_label(&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
Trait Implementations§
Source§impl Clone for EuvSwitchProps
impl Clone for EuvSwitchProps
Source§impl Debug for EuvSwitchProps
impl Debug for EuvSwitchProps
Auto Trait Implementations§
impl Freeze for EuvSwitchProps
impl RefUnwindSafe for EuvSwitchProps
impl Send for EuvSwitchProps
impl Sync for EuvSwitchProps
impl Unpin for EuvSwitchProps
impl UnsafeUnpin for EuvSwitchProps
impl UnwindSafe for EuvSwitchProps
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