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

interface DateFacetState {
    enabled: boolean;
    facetId: string;
    hasActiveValues: boolean;
    isLoading: boolean;
    sortCriterion: RangeFacetSortCriterion;
    values: DateFacetValue[];
}

Properties

enabled: boolean

Whether the facet is enabled and its values are used to filter search results.

facetId: string

The facet ID.

hasActiveValues: boolean

true if there is at least one non-idle value and false otherwise.

isLoading: boolean

true if a search is in progress and false otherwise.

The active sortCriterion of the facet.

values: DateFacetValue[]

The values of the facet.