Raxol.UI.Components.Input.SelectList.Search (Raxol v2.0.1)
View SourceSearch/filter functionality for SelectList component.
Summary
Functions
Appends a character to the search query.
Removes the last character from the search query.
Clears the current search.
Gets the current search results count.
Checks if search is active.
Updates the search state with a new query.
Functions
@spec append_to_search(Raxol.UI.Components.Input.SelectList.t(), String.t()) :: Raxol.UI.Components.Input.SelectList.t()
Appends a character to the search query.
@spec backspace_search(Raxol.UI.Components.Input.SelectList.t()) :: Raxol.UI.Components.Input.SelectList.t()
Removes the last character from the search query.
@spec clear_search(Raxol.UI.Components.Input.SelectList.t()) :: Raxol.UI.Components.Input.SelectList.t()
Clears the current search.
@spec get_results_count(Raxol.UI.Components.Input.SelectList.t()) :: non_neg_integer()
Gets the current search results count.
@spec search_active?(Raxol.UI.Components.Input.SelectList.t()) :: boolean()
Checks if search is active.
@spec update_search_state(Raxol.UI.Components.Input.SelectList.t(), String.t()) :: Raxol.UI.Components.Input.SelectList.t()
Updates the search state with a new query.