pub struct SearchProps {Show 17 fields
pub value: Option<String>,
pub default_value: Option<String>,
pub placeholder: Option<String>,
pub disabled: bool,
pub size: Option<InputSize>,
pub variant: Option<Variant>,
pub status: Option<ControlStatus>,
pub prefix: Option<Element>,
pub enter_button: bool,
pub enter_button_content: Option<Element>,
pub loading: bool,
pub class: Option<String>,
pub style: Option<String>,
pub class_names: Option<InputClassNames>,
pub styles: Option<InputStyles>,
pub on_change: Option<EventHandler<String>>,
pub on_search: Option<EventHandler<String>>,
}Expand description
Props for Search input.
Fields§
§value: Option<String>§default_value: Option<String>§placeholder: Option<String>§disabled: bool§size: Option<InputSize>§variant: Option<Variant>§status: Option<ControlStatus>§prefix: Option<Element>Whether to show enter button.
Custom content for enter button.
loading: boolWhether search is in loading state.
class: Option<String>§style: Option<String>§class_names: Option<InputClassNames>§styles: Option<InputStyles>§on_change: Option<EventHandler<String>>§on_search: Option<EventHandler<String>>Triggered when search button is clicked or Enter is pressed.
Implementations§
Source§impl SearchProps
impl SearchProps
Sourcepub fn builder() -> SearchPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> SearchPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building SearchProps.
On the builder, call .value(...)(optional), .default_value(...)(optional), .placeholder(...)(optional), .disabled(...)(optional), .size(...)(optional), .variant(...)(optional), .status(...)(optional), .prefix(...)(optional), .enter_button(...)(optional), .enter_button_content(...)(optional), .loading(...)(optional), .class(...)(optional), .style(...)(optional), .class_names(...)(optional), .styles(...)(optional), .on_change(...)(optional), .on_search(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of SearchProps.
Trait Implementations§
Source§impl Clone for SearchProps
impl Clone for SearchProps
Source§fn clone(&self) -> SearchProps
fn clone(&self) -> SearchProps
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more