Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The selector for this component is <hawksearch-numericdate-range-facet>.

Data Model

The following data model is exposed to the Handlebars template:

Code Block
languagetypescript
{
  idstartValue: string;
  fieldendValue: string | undefined;
  minValue: numberstring;
  maxValue: numberstring;
}

Event Binding Attributes

Attribute Name

Attribute Value

hawksearch-minstart

hawksearch-maxend

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.

...

Code Block
breakoutModewide
languagehtml
<div class="date-range-facet">
    <div class="row">
        <div class="column column--6">
            <hawksearch-date-picker hawksearch-minstart value="{{minValuestartValue}}" min="{{rangeMinminValue}}" max="{{rangeMaxendValue}}" label="Start Date"></hawksearch-date-picker>
        </div>
        <div class="column column--6">
            <hawksearch-date-picker hawksearch-maxend value="{{maxValueendValue}}" min="{{rangeMinstartValue}}" max="{{rangeMaxmaxValue}}" label="End Date"></hawksearch-date-picker>
        </div>
    </div>
</div>

...