Versions Compared

Key

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

...

Code Block
languagetypescript
{
  idstartValue: stringnumber;
  fieldendValue: string | undefinednumber;
  minValue: number;
  maxValue: number;
}

...

Attribute Name

Attribute Value

hawksearch-minstart

hawksearch-maxend

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

Code Block
breakoutModewide
languagehtml
<div class="numeric-range-facet">
    <div class="row">
        <div class="column column--6">
            <input type="number" hawksearch-minstart value="{{startValue}}" min="{{minValue}}" max="{{endValue}}" aria-label="Minimum" />
        </div>
        <div class="column column--6">
            <input type="number" hawksearch-maxend value="{{endValue}}" min="{{startValue}}" max="{{maxValue}}" aria-label="Maximum" />
        </div>
    </div>
</div>

...