...
Info |
---|
For more information, see Global Models. |
Events
hawksearch:initialized
This event fires after the Hawksearch Handlebars UI has been loaded. Developers can hook into this event to define custom Handlebars partials.
Code Block |
---|
|
addEventListener('hawksearch:initialized', (event) => {
Hawksearch.handlebars.registerPartial('custom-partial', 'HTML here');
}); |
hawksearch:search-completed
This event fired after every search operation (query, applied facet, etc.).
Code Block |
---|
|
addEventListener('hawksearch:search-completed', (event) => {
const searchResponse = event.detail;
console.log(searchResponse);
}); |