Widgets

Sort by

Description

The SortBy component displays a list of indexes allowing a user to change the hits are sorting.

Options

Attribute Type Description
items {name: string, label: string}[] The list of indexes to search in

Code example

<ais-sort-by [items]="[ { name: 'instant_search', label: 'Most relevant' }, { name: 'instant_search_price_asc', label: 'Lowest price' }, { name: 'instant_search_price_desc', label: 'Highest price' } ]" > </ais-sort-by>

Can't find what you are looking for? Open an issue, we'll get back to you.