Clears the search box text and the suggestions.
Selects a suggestion and calls submit
.
The string value of the suggestion to select
Shows the suggestions for the current search box value.
Deselects all facets and triggers a search query.
Adds a callback that's invoked on state change.
A callback that's invoked on state change.
A function to remove the listener.
Updates the search box text value and shows the suggestions for that value.
The string value to update the search box with.
The
SearchBox
headless controller offers a high-level interface for designing a common search box UI controller with highlighting for query suggestions.Example: search-box.fn.tsx