pub struct SearchInputProperties {Show 23 fields
pub id: Option<AttrValue>,
pub aria_label: AttrValue,
pub class: Classes,
pub expandable: Option<SearchInputExpandableProperties>,
pub hint: Option<AttrValue>,
pub inner_ref: Option<NodeRef>,
pub disabled: bool,
pub placeholder: Option<AttrValue>,
pub reset_button_label: AttrValue,
pub submit_search_button_label: AttrValue,
pub utilities_displayed: bool,
pub value: String,
pub autofocus: bool,
pub results_count: Option<ResultsCount>,
pub previous_navigation_button_aria_label: AttrValue,
pub previous_navigation_button_disabled: bool,
pub next_navigation_button_aria_label: AttrValue,
pub next_navigation_button_disabled: bool,
pub onchange: Option<Callback<String>>,
pub onclear: Option<Callback<MouseEvent>>,
pub onnextclick: Option<Callback<MouseEvent>>,
pub onpreviousclick: Option<Callback<MouseEvent>>,
pub onsearch: Option<Callback<(OnSearchEvent, String)>>,
}
Expand description
The main search input component.
Fields§
§id: Option<AttrValue>
Id of the outermost element
aria_label: AttrValue
An accessible label for the search input.
class: Classes
Additional classes added to the search input.
expandable: Option<SearchInputExpandableProperties>
Object that makes the search input expandable/collapsable.
hint: Option<AttrValue>
A suggestion for autocompleting
inner_ref: Option<NodeRef>
A reference object to attach to the input box.
disabled: bool
Flag indicating if searchinput is disabled.
placeholder: Option<AttrValue>
Placeholder text of the search input.
Label for the button which resets the advanced search form and clears the search input.
Label for the button which calls the onSearch event handler.
utilities_displayed: bool
Flag to indicate utilities should be displayed. By default, utilities will only be displayed when the search input has a value.
value: String
Value of the search input.
autofocus: bool
§results_count: Option<ResultsCount>
The number of search results returned. View [ResultsCount]
.
Accessible label for the button to navigate to previous result.
Flag indicating if the previous navigation button is disabled.
Accessible label for the button to navigate to next result.
Flag indicating if the next navigation button is disabled.
onchange: Option<Callback<String>>
A callback for when the input value changes.
onclear: Option<Callback<MouseEvent>>
A callback for when the user clicks the clear button.
onnextclick: Option<Callback<MouseEvent>>
A callback for when the user clicks to navigate to next result.
onpreviousclick: Option<Callback<MouseEvent>>
A callback for when the user clicks to navigate to previous result.
onsearch: Option<Callback<(OnSearchEvent, String)>>
A callback for when the search button is clicked.
Trait Implementations§
source§impl Clone for SearchInputProperties
impl Clone for SearchInputProperties
source§fn clone(&self) -> SearchInputProperties
fn clone(&self) -> SearchInputProperties
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SearchInputProperties
impl Debug for SearchInputProperties
source§impl PartialEq for SearchInputProperties
impl PartialEq for SearchInputProperties
source§fn eq(&self, other: &SearchInputProperties) -> bool
fn eq(&self, other: &SearchInputProperties) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Properties for SearchInputProperties
impl Properties for SearchInputProperties
impl StructuralPartialEq for SearchInputProperties
Auto Trait Implementations§
impl Freeze for SearchInputProperties
impl !RefUnwindSafe for SearchInputProperties
impl !Send for SearchInputProperties
impl !Sync for SearchInputProperties
impl Unpin for SearchInputProperties
impl !UnwindSafe for SearchInputProperties
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
self
to a value of a Properties
struct.source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
self
to a value of a Properties
struct.