Searchstax RelatedSearchesWidget Angular


The SearchStax Site Search solution offers an Angular related-searches widget for your custom search page.

The SearchstaxRelatedSearchesWidget displays related searches.

Usage

Import the component:

import { SearchstaxRelatedSearchesWidget } from '@searchstax-inc/searchstudio-ux-angular';


Add to template:

<app-searchstax-related-searches></app-searchstax-related-searches>


Inputs

  • relatedSearchesURL: URL for fetching related searches.
  • relatedSearchesAPIKey: API key for related searches.
  • templateOverride: TemplateRef to override default UI.

Properties

  • relatedData: Object containing related searches data.
  • context: Component instance reference.

Methods

  • executeSearch(): Triggers new search for a related query.
  • attachObservables(): Subscribes to search data observables.

Template Binding Properties

The templateOverride provides:

  • relatedData: Related searches data object.
  • executeSearch: Method to trigger new search.
  • context: Component instance context.

See Example of Related Searches Widget for Angular

Questions?

Do not hesitate to contact the SearchStax Support Desk.