atomic-numeric-facet
atomic-numeric-facet
This is for:
DeveloperA facet is a list of values for a certain field occurring in the results, ordered using a configurable criteria (for example, ascending, descending).
An atomic-numeric-facet
displays a facet of the results for the current query as numeric ranges.
Introduction
A numeric facet allows users to drill down inside a result set by filtering the result to certain numeric field values. Adding an optional custom range selector to a numeric facet can help find specific ranges more efficiently.
User Experience and Best Practices
Usage Notes
-
Checkboxes let users select multiple values and are the most commonly used selection, being more visual and presenting more values in small spaces.
-
Links allow the user to select only one value at a time, behaving like a normal navigational link.
Guidelines
Use Cases and Examples
In cases where the value has a units such as height, width, screen sizes, etc.
Reference
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
|
The required facets and values for this facet to be displayed. Examples:
|
|
|
|
|
|
Whether to display the facet values as checkboxes (multiple selection) or links (single selection). Possible values are 'checkbox' and 'link'. |
|
|
|
|
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 |
|
|
|
|
The number of values to request for this facet, when there are no manual ranges. If the number of values is 0, no ranges will be displayed. |
|
|
|
|
The algorithm that’s used for generating the ranges of this facet when they aren’t manually defined. The default value of |
|
|
|
|
The sort criterion to apply to the returned facet values. Possible values are 'ascending' and 'descending'. |
|
|
|
|
Whether this facet should contain an input allowing users to set custom ranges. Depending on the field, the input can allow either decimal or integer values. |
|
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 numeric range. |
|
The form that comprises the labels, inputs, and 'apply' button for the custom numeric range. |
|
The input for the starting value of the custom numeric range. |
|
The button that displays the label and allows to expand/collapse the facet. |
|
The label button icon. |
|
The label for the ending value of the custom numeric range. |
|
The label for the starting value of the custom numeric range. |
|
The placeholder shown before the first search is executed. |
|
The facet value checkbox, available when display is 'checkbox'. |
|
The checked facet value checkbox, available when display is 'checkbox'. |
|
The facet value checkbox clickable label, available when display is 'checkbox'. |
|
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. |
CSS Custom Content
Name | Description |
---|---|
|
Size of the checkbox. |