@coveo/headless
    Preparing search index...

    Interface NumericFacetState

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

    interface NumericFacetState {
        enabled: boolean;
        facetId: string;
        hasActiveValues: boolean;
        isLoading: boolean;
        sortCriterion: RangeFacetSortCriterion;
        values: NumericFacetValue[];
    }
    Index

    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.

    The values of the facet.