Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Overview

The Date 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:

{
  id: string;
  field: string | undefined;
  minValue: number;
  maxValue: number;
}

Event Binding Attributes

Attribute Name

Attribute Value

hawksearch-min

hawksearch-max

These attributes should be placed on Date Picker elements. When these elements lose focus (blurred), the entered range will be applied as a facet value.

Default Template

<div class="date-range-facet">
    <div class="row">
        <div class="column column--6">
            <hawksearch-date-picker hawksearch-min value="{{minValue}}" min="{{rangeMin}}" max="{{rangeMax}}"></hawksearch-date-picker>
        </div>
        <div class="column column--6">
            <hawksearch-date-picker hawksearch-max value="{{maxValue}}" min="{{rangeMin}}" max="{{rangeMax}}"></hawksearch-date-picker>
        </div>
    </div>
</div>

  • No labels