Table of Contents |
---|
Overview
The Range Slider Facet component renders a Range Slider Component and number input elements for minimum and maximum value.
...
Selector
The selector for this component is <hawksearch-range-slider-facet>
.
Data Model
The following data model is exposed to the Handlebars template:
Code Block | ||
---|---|---|
| ||
{
id: string;
field: string | undefined;
minValue: number;
maxValue: number;
sliderMin: number;
sliderMax: number;
} |
Info |
---|
|
Event Binding Attributes
Attribute Name | Attribute Value |
---|---|
hawksearch-min | |
hawksearch-max |
These attributes should be placed on a number input elements. When these elements lose focus (blurred), the entered price range will be applied as a facet value.
Default Template
Code Block | ||||
---|---|---|---|---|
| ||||
<div class='range-slider-facet'>
<div class='row'>
<div class='column column--6'>
<input type='number' hawksearch-min value='{{minValue}}' />
</div>
<div class='column column--6'>
<input type='number' hawksearch-max value='{{maxValue}}' />
</div>
</div>
<hawksearch-range-slider min='{{sliderMin}}' max={{sliderMax}}></hawksearch-range-slider>
</div> |