pub struct EuvCheckboxGroupProps {
pub options: Vec<EuvCheckboxGroupOption>,
pub values: Signal<Vec<String>>,
pub label: &'static str,
pub on_change: Option<Rc<dyn Fn(Vec<String>)>>,
}Expand description
Props for the euv_checkbox_group component.
The checked values live in a caller-owned Signal<Vec<String>> so the
group takes part in two-way binding with the rest of the page; the
group reads that vector once per render to decide which markers are
ticked.
Fields§
§options: Vec<EuvCheckboxGroupOption>The options rendered in the group, in display order.
values: Signal<Vec<String>>The signal holding the currently checked option values.
label: &'static strThe group label above the options; an empty label renders no label.
on_change: Option<Rc<dyn Fn(Vec<String>)>>Optional callback receiving the new set of checked values.
Trait Implementations§
Source§impl Clone for EuvCheckboxGroupProps
impl Clone for EuvCheckboxGroupProps
Source§impl Debug for EuvCheckboxGroupProps
impl Debug for EuvCheckboxGroupProps
Auto Trait Implementations§
impl !RefUnwindSafe for EuvCheckboxGroupProps
impl !Send for EuvCheckboxGroupProps
impl !Sync for EuvCheckboxGroupProps
impl !UnwindSafe for EuvCheckboxGroupProps
impl Freeze for EuvCheckboxGroupProps
impl Unpin for EuvCheckboxGroupProps
impl UnsafeUnpin for EuvCheckboxGroupProps
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