@coveo/headless
    Preparing search index...

    Interface DateFacet

    The DateFacet controller makes it possible to create a facet with date ranges.

    Examples:

    interface DateFacet {
        state: DateFacetState;
        deselectAll(): void;
        disable(): void;
        enable(): void;
        isSortedBy(criterion: RangeFacetSortCriterion): boolean;
        isValueSelected(selection: DateFacetValue): boolean;
        sortBy(criterion: RangeFacetSortCriterion): void;
        subscribe(listener: () => void): Unsubscribe;
        toggleExclude(selection: DateFacetValue): void;
        toggleSelect(selection: DateFacetValue): void;
        toggleSingleExclude(selection: DateFacetValue): void;
        toggleSingleSelect(selection: DateFacetValue): void;
    }

    Hierarchy (View Summary)

    Index

    Methods

    Properties

    The state of the DateFacet controller.