A scoped and simplified part of the headless state that is relevant to the NumericFilter controller.

interface NumericFilterState {
    enabled: boolean;
    facetId: string;
    isLoading: boolean;
    range?: NumericFacetValue;
}

Properties

enabled: boolean

Whether the filter is enabled and its value is used to filter search results.

facetId: string

The facet ID.

isLoading: boolean

Returns true if a search is in progress, and false if not.

The current selected range.