Trevixal API
    Preparing search index...

    Interface SuggestionPopupOptions<T>

    interface SuggestionPopupOptions<T> {
        detailOf?: (item: T) => string | undefined;
        editor: Editor;
        emptyLabel?: string;
        iconOf?: (item: T) => IconName | undefined;
        onPick: (index: number) => void;
        renderItem: (item: T) => string;
    }

    Type Parameters

    • T
    Index
    detailOf?: (item: T) => string | undefined

    A quieter line under an item's label, saying what it does.

    editor: Editor
    emptyLabel?: string

    Message shown when the query has no matches (default: hide).

    iconOf?: (item: T) => IconName | undefined

    An icon to draw before an item's label.

    onPick: (index: number) => void

    Mouse selection: forward to the suggestion handle's select(index).

    renderItem: (item: T) => string

    Label for one item (plain text; build your own DOM for richer rows).