Search UI
Shopify Algolia global events
The global events emitted by the InstantSearch and Autocomplete libraries.
The InstantSearch and Autocomplete libraries emit global events. You can’t pass data to the global events but you can listen to them.
algolia.autocomplete.beforeInit
is emitted before the Autocomplete library is initializedalgolia.autocomplete.afterInit
is emitted after the Autocomplete library is initializedalgolia.autocomplete.hitClickAction
is emitted when a user clicks on an Autocomplete resultalgolia.instantsearch.beforeInit
is emitted before the InstantSearch library is initializedalgolia.instantSearch.afterInit
is emitted after the InstantSearch library is initializedalgolia.instantsearch.hitClickAction
is emitted when a user clicks on an InstantSearch resultalgolia.instantSearch.onError
is emitted when the InstantSearch library. reports an erroralgolia.instantSearch.onRender
is emitted when all InstantSearch widgets have been renderedalgolia.instantsearch.beforeInitSortOrders
is emitted before InstantSearch sorting is initializedalgolia.instantsearch.beforeInitFacets
is emitted before InstantSearch facets are initializedalgolia.hooks.initialize
is emitted before Algolia hooks have been initializedalgolia.analytics.beforeInit
is emitted before the Algolia Insights API has been initialized
Example
js
Was this page helpful?