pub struct Props {Show 18 fields
pub value: String,
pub label: String,
pub natural_menu_width: bool,
pub icon: String,
pub disabled: bool,
pub outlined: bool,
pub helper: String,
pub required: bool,
pub validation_message: String,
pub items: String,
pub index: i64,
pub validate_on_initial_render: bool,
pub children: Children,
pub select_link: WeakComponentLink<Select>,
pub onopened: Callback<()>,
pub onclosed: Callback<()>,
pub onaction: Callback<ActionDetail>,
pub onselected: Callback<SelectedDetail>,
}
Expand description
Fields§
§value: String
§label: String
§icon: String
§disabled: bool
§outlined: bool
§helper: String
§required: bool
§validation_message: String
§items: String
§index: i64
§validate_on_initial_render: bool
§children: Children
§select_link: WeakComponentLink<Select>
[WeakComponentLink
] for List
which provides the following methods
select(&self)
See [WeakComponentLink
] documentation for more information
onopened: Callback<()>
Binds to opened
event on select-surface
See events docs to learn more.
onclosed: Callback<()>
Binds to closed
event on select-surface
See events docs to learn more.
onaction: Callback<ActionDetail>
Binds to action
event on list
See events docs to learn more.
onselected: Callback<SelectedDetail>
Binds to selected
event on list
See events docs to learn more.
Trait Implementations§
Source§impl Properties for Props
impl Properties for Props
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