Trevixal API
    Preparing search index...

    Interface SuggestionOptions

    interface SuggestionOptions {
        allowSpaces?: boolean;
        char: string;
        onExit?: () => void;
        onKeyDown?: (event: KeyboardEvent, match: TriggerMatch) => boolean;
        onStart?: (match: TriggerMatch) => void;
        onUpdate?: (match: TriggerMatch) => void;
        startOfBlock?: boolean;
    }

    Hierarchy (View Summary)

    Index
    allowSpaces?: boolean

    Allow whitespace inside the query (multi-word item names).

    char: string

    The trigger sequence, e.g. '@', '/', ':'.

    onExit?: () => void

    The trigger was dismissed (deleted, caret left, editor blurred it).

    onKeyDown?: (event: KeyboardEvent, match: TriggerMatch) => boolean

    Consume keys while active (popup navigation). Return true when handled.

    onStart?: (match: TriggerMatch) => void

    A trigger became active.

    onUpdate?: (match: TriggerMatch) => void

    The query of the active trigger changed.

    startOfBlock?: boolean

    Only match when the trigger sits at the very start of the block.