JavaScript - Results Widget

The SearchStax Site Search Results Widget for UX-JS displays your search results.

Usage

searchstax.addSearchResultsWidget("searchstax-results-container", {
  renderMethod: "pagination",
  resultsPerPage: 10
});

Props

  • renderMethod – either "pagination" or "infiniteScroll".
  • resultsPerPage – the number of results to display on each page.
  • hooks.afterLinkClick – a callback function that runs when you click a result link. Use it to modify the result object.
  • templates – see examples at searchstax-ux-js.

Example

See the full examples at searchstax-ux-js.

Articles in this section