Numeric Range Facet Component
Overview
The Numeric Range Facet component renders number input elements for minimum and maximum value.
Selector
The selector for this component is <hawksearch-numeric-range-facet>
.
Data Model
The following data model is exposed to the Handlebars template:
{
startValue: number;
endValue: number;
minValue: number;
maxValue: number;
}
Event Binding Attributes
Attribute Name | Attribute Value |
---|---|
hawksearch-start | Â |
hawksearch-end | Â |
These attributes should be placed on number input elements. When these elements lose focus (blurred), the entered range will be applied as a facet value.
Default Template
<div class="numeric-range-facet">
<div class="row">
<div class="column column--6">
<input type="number" hawksearch-start value="{{startValue}}" min="{{minValue}}" max="{{endValue}}" aria-label="Minimum" />
</div>
<div class="column column--6">
<input type="number" hawksearch-end value="{{endValue}}" min="{{startValue}}" max="{{maxValue}}" aria-label="Maximum" />
</div>
</div>
</div>
Â