Skip to main content

Sort Dropdown

Role attribute

Every instance of this component carries:

Add this attribute
Namewf-algolia-element
Valuesort
Required1 attribute
IndexRequired

Default/primary replica index for the sort widget. NOTE: the per-option replica is taken from each <option value="…"> (the select fires on change and uses option.value), NOT from this attribute - see the info rule below.

Accepts e.g. acme_blog_prod_price_asc

Elements inside it

These roles are placed inside this component, not on their own:

sort
└─ sort-selected-label
  • — Element written with the label of the currently active sort.