SearchstaxSortingWidget Angular
The SearchStax Site Search solution provides an Angular sorting widget for your custom search page.
The SearchstaxSortingWidget
displays sorting options for search results.
Usage
Import the component:
import { SearchstaxSearchSortingWidget } from '@searchstax-inc/searchstudio-ux-angular';
Add to template:
<app-searchstax-search-sorting></app-searchstax-search-sorting>
Inputs
- templateOverride: TemplateRef to override default sorting UI.
Properties
- sortingData: Object containing sorting data.
- context: Component instance reference.
- selectedSorting: Current selected sorting.
Methods
- orderChange(): Handles changing the sort order.
- attachObservables(): Subscribes to search data observables.
Template Binding Properties
The templateOverride provides:
- selectedSorting: Current selected sorting.
- orderChange: Method to handle changing sort.
- context: Component instance context.
See Example of Sorting Widget for Angular
Questions?
Do not hesitate to contact the SearchStax Support Desk.