pub struct SelectProps {Show 14 fields
pub model_value: Option<String>,
pub options: Vec<SelectOption>,
pub disabled: bool,
pub clearable: bool,
pub filterable: bool,
pub multiple: bool,
pub placeholder: String,
pub size: SelectSize,
pub collapse_tags: bool,
pub collapse_tags_tooltip: Option<bool>,
pub max_collapse_tags: Option<u32>,
pub on_change: Option<EventHandler<String>>,
pub class: Option<String>,
pub style: Option<String>,
}Expand description
Select props
Fields§
§model_value: Option<String>Selected value
options: Vec<SelectOption>Options for the select
disabled: boolWhether the select is disabled
clearable: boolWhether the select is clearable
filterable: boolWhether the select is filterable
multiple: boolWhether multiple selection is allowed
placeholder: StringPlaceholder text
size: SelectSizeSelect size
Whether to collapse tags in multiple mode
Whether to collapse tags with tooltip
Maximum number of tags shown in multiple mode
on_change: Option<EventHandler<String>>Change event handler
class: Option<String>Additional CSS classes
style: Option<String>Inline styles
Implementations§
Source§impl SelectProps
impl SelectProps
Sourcepub fn builder() -> SelectPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> SelectPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building SelectProps.
On the builder, call .model_value(...)(optional), .options(...)(optional), .disabled(...)(optional), .clearable(...)(optional), .filterable(...)(optional), .multiple(...)(optional), .placeholder(...)(optional), .size(...)(optional), .collapse_tags(...)(optional), .collapse_tags_tooltip(...)(optional), .max_collapse_tags(...)(optional), .on_change(...)(optional), .class(...)(optional), .style(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of SelectProps.
Trait Implementations§
Source§impl Clone for SelectProps
impl Clone for SelectProps
Source§fn clone(&self) -> SelectProps
fn clone(&self) -> SelectProps
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl PartialEq for SelectProps
impl PartialEq for SelectProps
Source§fn eq(&self, other: &SelectProps) -> bool
fn eq(&self, other: &SelectProps) -> bool
self and other values to be equal, and is used by ==.