Trevixal API
    Preparing search index...

    Interface CommandPaletteOptions

    interface CommandPaletteOptions {
        bindShortcuts?: boolean;
        commands: readonly PaletteCommand[] | (() => readonly PaletteCommand[]);
        container?: HTMLElement;
        emptyLabel?: string;
        maxResults?: number;
        placeholder?: string;
    }
    Index
    bindShortcuts?: boolean

    Bind Ctrl/Cmd+K and Ctrl/Cmd+Shift+P (default true).

    commands: readonly PaletteCommand[] | (() => readonly PaletteCommand[])

    The commands on offer. The palette never invents its own.

    Pass a function to have them collected each time the palette opens, needed when the source is built after the palette itself, and it keeps a derived list (see paletteCommandsFromMenus) current.

    container?: HTMLElement

    Where the overlay is appended (default: the document body).

    emptyLabel?: string
    maxResults?: number

    Cap on rendered rows (default 50). The filter runs over everything.

    placeholder?: string