The FetchClient used to send API calls against the backend.
The options used to modify the autocomplete function
A function meant to be called at every keystroke that returns a list of suggestions for autocompletion.
All characters typed so far, all strings returned by this function will start with this prefix.
The highlighted or default autocomplete list for the given prefix, contains at most 5 elements.
Highlights the prefix (typed by the user in the input field) using the html strong tag.
An item from the list of autocomplete suggestions.
The prefix to highlight.
Creates the widget and attaches it to the given HTMLInputElement.
The HTML input element to attach the widget to.
The HTML div element to render the widget into
Marks the active item with the 'smart-search-autocomplete-active' css class.
The html element containing all the autocomplete suggestions
Removes highlights from a highlighted item.
A string containing a <strong>-tag.
Generated using TypeDoc
UI-Widget that can be attached to an input element. Fetches and displays autocomplete suggestions.
If you want to render your own HTML and just fetch the autocomplete suggestions, use SmartSearch.fetchAutocompleteList instead.