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

interface DateFilterState {
    enabled: boolean;
    facetId: string;
    isLoading: boolean;
    range?: DateFacetValue;
}

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.