Wagtail client-side components
    Preparing search index...

    Interface ComboBoxProps<ComboBoxOption>

    interface ComboBoxProps<ComboBoxOption> {
        getItemDescription: (item: ComboBoxOption) => undefined | null | string;
        getItemLabel: (
            type: undefined | string,
            item: ComboBoxOption,
        ) => undefined | null | string;
        getSearchFields: (item: ComboBoxOption) => (undefined | null | string)[];
        inputValue?: string;
        items: ComboBoxCategory<ComboBoxOption>[];
        label?: string;
        noResultsText?: string;
        onSelect: (change: UseComboboxStateChange<ComboBoxOption>) => void;
        placeholder?: string;
    }

    Type Parameters

    • ComboBoxOption
    Index

    Properties

    getItemDescription: (item: ComboBoxOption) => undefined | null | string
    getItemLabel: (
        type: undefined | string,
        item: ComboBoxOption,
    ) => undefined | null | string
    getSearchFields: (item: ComboBoxOption) => (undefined | null | string)[]
    inputValue?: string
    label?: string
    noResultsText?: string
    onSelect: (change: UseComboboxStateChange<ComboBoxOption>) => void
    placeholder?: string