Axinom Mosaic Libraries
    Preparing search index...

    Interface SearcheableOptionsFilter<T>

    interface SearcheableOptionsFilter<T extends Data> {
        label: string;
        maxItems?: number;
        onValidate?: FilterValidatorFunction<T>;
        optionsProvider: (searchText: string, value?: unknown) => Option[];
        property: keyof T;
        searchInputPlaceholder?: string;
        selectedValueRenderer?: SelectedValueRenderer;
        type: SearcheableOptions;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    label: string

    Label displayed for the filter

    maxItems?: number

    Maximum number of items to display

    Callback triggered when the filter is validated

    optionsProvider: (searchText: string, value?: unknown) => Option[]

    Callback triggered when the search input changes. This is also used to resolve the selected option from the value.

    property: keyof T

    Property of the data the filter applies to

    searchInputPlaceholder?: string

    Placeholder for the search input

    selectedValueRenderer?: SelectedValueRenderer

    Custom renderer for the selected value

    Type of the filter