atomic-timeframe-facet
atomic-timeframe-facet
This is for:
DeveloperA facet is a list of values for a certain field occurring in the results.
An atomic-timeframe-facet
displays a facet of the results for the current query as date intervals.
Introduction
A facet allows users to drill down inside a result set by restricting the result to certain field values. The Timeframe Facet is used specifically with field values that are dates. An optional date picker is available to this facet, allowing users to set custom ranges.
User Experience and Best Practices
-
Users can search for items based on dates, such as: publication date, latest update date, submission date, etc.
-
Enabling the date picker allows users to set a custom date range, helping narrow results to a very specific range.
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
|
The required facets and values for this facet to be displayed. Examples:
|
|
|
|
|
|
Specifies a unique identifier for the facet. |
|
|
|
|
The field whose values you want to display in the facet. |
|
|
|
|
Whether to exclude the parents of folded results when estimating the result count for each facet value. |
|
|
|
|
The heading level to use for the heading over the facet, from 1 to 6. |
|
|
|
|
The maximum number of results to scan in the index to ensure that the facet lists all potential facet values.
Note: A high injectionDepth may negatively impact the facet request performance.
Minimum: |
|
|
|
|
Specifies whether the facet is collapsed. When the facet is the child of an |
|
|
|
|
The non-localized label for the facet. Used in the atomic-breadbox component through the bindings store. |
|
|
|
|
The latest date to accept from user input when the This value must be a valid date string in the format If this format is not respected, the date picker ignores this property, behaving as if no See also MDN. |
|
|
|
|
The earliest date to accept from user input when the This value must be a valid date string in the format If this format is not respected, the date picker ignores this property, behaving as if no See also MDN. |
|
|
|
|
Whether this facet should contain an datepicker allowing users to set custom ranges. |
|
|
Shadow Parts
Part | Description |
---|---|
|
The button that resets the actively selected facet values. |
|
The clear button icon. |
|
The wrapper for the entire facet. |
|
The apply button for the custom range. |
|
The input for the ending value of the custom date range. |
|
The label for both the start and end input. |
|
The input for the starting value of the custom date range. |
|
The button that displays the label and allows to expand/collapse the facet. |
|
The label button icon. |
|
The placeholder shown before the first search is executed. |
|
The facet value count, common for all displays. |
|
The facet value label, common for all displays. |
|
The facet value when display is 'link'. |
|
The selected facet value when display is 'link'. |
|
The facet values container. |