Search component displays a menu of as-you-type results from a variety
The search box will be 'activated' if the app's search state's getInitialSearch() value is a truthy value. If this is the case, an 'x' button will be shown next to the search field, and clicking it will clear the search.
The attributes passed into the component.
The root DOM element for the component.
Whether or not the search input has focus.
The index of the currently-selected
The number of sources that are still loading results.
The instance of
SearchState for this component.
An array of SearchSources.
The minimum query length before sources are searched.
Returns a jQuery object for this component's element. If you pass in a selector string, this method will return a jQuery object, using the current element as its buffer.
For example, calling
component.$('li') will return a jQuery object
containing all of the
li elements inside the DOM element of this
the jQuery object for the DOM node
Clear the search
Get the position of the currently selected search result item.
Navigate to the currently selected search result and close the list.
Get all of the search result items that are selectable.
Set the currently-selected search result item to the one with the given index.
Initialize the component's attrs.
This can be used to assign default values for missing, optional attrs.
Generated using TypeDoc version 0.22.10