The NumericFacet controller makes it possible to create a facet with numeric ranges.

Example: numeric-facet.fn.tsx

interface NumericFacet {
    state: NumericFacetState;
    deselectAll(): void;
    disable(): void;
    enable(): void;
    isSortedBy(criterion: RangeFacetSortCriterion): boolean;
    isValueSelected(selection: NumericFacetValue): boolean;
    sortBy(criterion: RangeFacetSortCriterion): void;
    subscribe(listener: () => void): Unsubscribe;
    toggleSelect(selection: NumericFacetValue): void;
    toggleSingleSelect(selection: NumericFacetValue): void;
}

Hierarchy (View Summary)

Methods

Properties

The state of the NumericFacet controller.