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

interface CoreCategoryFacet {
    state: CoreCategoryFacetState;
    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)

Methods

Properties

The state of the Facet controller.