How To
Documentation
    Learn More

      facet:dropdown

      Description

      Display a facet as a select dropdown, allowing the user to apply a URL filter by selecting an option.

      Usage

      as element:
      <facet:dropdown
             response="{string}"
             facet="{string}"
             [facet-field="{string}"]
             [submit-on-select="{boolean}"]
             [search-within="{boolean}"]
             [default-text="{string}"]
             [exclude="{string}"]>
      </facet:dropdown>

      Parameters

      ParamTypeDetails
      responsestring

      The response to use

      facetstring

      The facet in the response

      facet-field
      (optional)
      string

      Optional add a filter on a different field to the facet name

      submit-on-select
      (optional)
      boolean

      Reload responses when an option is selected. Default: false

      search-within
      (optional)
      boolean

      Allow the user to search the select options. Default: false

      default-text
      (optional)
      string

      The default text to display when an option has not be selected

      exclude
      (optional)
      string

      Adds the filter as an exclude

      Example

      Source