Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This event is fired after every autocomplete query. This can be used to modify the raw request sent to response received from the Hawksearch API.

Code Block
languagejs
addEventListener('hawksearch:after-autocomplete-executed', (event) => {
    const autocompleteResponse = event.detail;

    console.log(autocompleteResponse);
});

...

This event is fired after every search operation. This can be used to modify the raw request sent to response received from the Hawksearch API.

Code Block
languagejs
addEventListener('hawksearch:after-search-executed', (event) => {
    const searchResponse = event.detail;

    console.log(searchResponse);
});

...