pub struct Props {
pub label: String,
pub value: Vec<String>,
pub options: Vec<CheckboxOption>,
pub radio: bool,
pub on_change: Option<Callback<Vec<String>>>,
}Fields§
§label: StringThe input label
value: Vec<String>The controlled value of the input
options: Vec<CheckboxOption>The options for the checkboxes
radio: boolWhether this should be a radio button
on_change: Option<Callback<Vec<String>>>A callback that is fired when the user changes the input value
Trait Implementations§
impl StructuralPartialEq for Props
Auto Trait Implementations§
impl Freeze for Props
impl !RefUnwindSafe for Props
impl !Send for Props
impl !Sync for Props
impl Unpin for Props
impl !UnwindSafe for Props
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)