Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • title: the title showed at the top of the facet

  • queries: the solr queries to execute for the facet

  • labels: The labels to be shown to the users alongside each query result

  • id: an internal unique identifier that you must specify

  • minShow: The maximum number of elements that are shown if the facet is not expanded

  • maxShow: The maximum number of elements that are shown if the facet is expanded (after clicking show more)

  • children: an array of children components displayed directly below this facet. Made available to specify components allowing users to specify custom queries, like the one to specify a custom date range shown in the example

  • show (optional) : True to display the facet. False to hide the facet

  • variant (optional, default is `both') : differ the display according to the given variant value. It could be :

    • queries_only : Only display solr queries as multiple checkboxes list

    • children_only : only display the children component contained in the children props of the QueryFacet

    • both (default) : Display both queries list and children components

DateFacetCustom

Allows users to specify a custom date range applied to the creation_date field. Specifically built to be displayed together with the creation date query facet.

...