Raxol.UI.Components.Input.SelectList.Search (Raxol v2.0.1)

View Source

Search/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

append_to_search(state, char)

Appends a character to the search query.

backspace_search(state)

Removes the last character from the search query.

clear_search(state)

Clears the current search.

get_results_count(state)

Gets the current search results count.

search_active?(state)

@spec search_active?(Raxol.UI.Components.Input.SelectList.t()) :: boolean()

Checks if search is active.

update_search_state(state, query)

Updates the search state with a new query.