@coveo/headless
    Preparing search index...

    Interface CategoryFacet

    The CategoryFacet headless controller offers a high-level interface for designing a facet UI controller that renders values hierarchically.

    Example:

    interface CategoryFacet {
        facetSearch: CategoryFacetSearch;
        state: CategoryFacetState;
        deselectAll(): void;
        disable(): void;
        enable(): void;
        isSortedBy(criterion: CategoryFacetSortCriterion): boolean;
        showLessValues(): void;
        showMoreValues(): void;
        sortBy(criterion: CategoryFacetSortCriterion): void;
        subscribe(listener: () => void): Unsubscribe;
        toggleSelect(selection: CategoryFacetValue): void;
    }

    Hierarchy (View Summary)

    Index

    Methods

    Properties

    facetSearch: CategoryFacetSearch

    Provides methods to search the facet's values.

    The state of the Facet controller.