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.

§reset_button_label: AttrValue

Label for the button which resets the advanced search form and clears the search input.

§submit_search_button_label: AttrValue

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].

§previous_navigation_button_aria_label: AttrValue

Accessible label for the button to navigate to previous result.

§previous_navigation_button_disabled: bool

Flag indicating if the previous navigation button is disabled.

§next_navigation_button_aria_label: AttrValue

Accessible label for the button to navigate to next result.

§next_navigation_button_disabled: bool

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

source§

fn clone(&self) -> SearchInputProperties

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SearchInputProperties

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for SearchInputProperties

source§

fn eq(&self, other: &SearchInputProperties) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Properties for SearchInputProperties

§

type Builder = SearchInputPropertiesBuilder

Builder that will be used to construct properties
source§

fn builder() -> Self::Builder

Entrypoint for building properties
source§

impl StructuralPartialEq for SearchInputProperties

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoPropValue<Option<T>> for T

source§

fn into_prop_value(self) -> Option<T>

Convert self to a value of a Properties struct.
source§

impl<T> IntoPropValue<T> for T

source§

fn into_prop_value(self) -> T

Convert self to a value of a Properties struct.
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithBreakpointExt<T> for T
where T: PartialEq,

source§

fn on(self, breakpoint: Breakpoint) -> WithBreakpoint<T>

source§

fn all(self) -> WithBreakpoint<T>

source§

fn sm(self) -> WithBreakpoint<T>

source§

fn md(self) -> WithBreakpoint<T>

source§

fn lg(self) -> WithBreakpoint<T>

source§

fn xl(self) -> WithBreakpoint<T>

source§

fn xxl(self) -> WithBreakpoint<T>

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<Token, Builder, How> AllPropsFor<Builder, How> for Token
where Builder: Buildable<Token>, <Builder as Buildable<Token>>::WrappedToken: HasAllProps<<Builder as Buildable<Token>>::Output, How>,

source§

impl<T> HasAllProps<(), T> for T