Trevixal API
    Preparing search index...

    Interface SuggestionPopupOptions<T>

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

    Type Parameters

    • T
    Index
    editor: Editor
    emptyLabel?: string

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

    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).