- API reference
- UI components
Apr 01, 2023
InstantSearch component
On this page
The component class that uses the usf.templates.instantSearch template.
Properties
| Name | Data type | Description |
|---|---|---|
| firstLoader read-only |
Boolean | true if it's the first time the Instant Search popup is being shown; otherwise false. |
| loader read-only |
Boolean | true if the Instant Search is loading data from the indexing server; otherwise false. |
| searchUrl read-only |
String | The URL to the search page. |
| term read-only |
String | The search term that user has typed. |
| result read-only |
Object | The search results object. |
| settings read-only |
Object | The Instant Search settings object. |
| loc read-only |
Object | {...}The localization object storing localized strings. |
| isEmpty read-only |
Boolean | true if the returned data is empty; otherwise false. |
Methods
| Name | Description |
|---|---|
| close | Closes the Instant Search popup. |
| onSearchBoxInput | This event handler is invoked when the user has typed in the input search box. |
| search | search('red')Performs search or redirects to the search page. |
14 Days Risk Free Trial. No credit card required. Cancel anytime.
© Sobooster - Privacy Policy