Trevixal API
    Preparing search index...

    Interface SuggestionPopup<T>

    interface SuggestionPopup<T> {
        element: HTMLElement;
        destroy(): void;
        update(state: SuggestionListState<T> | null): void;
    }

    Type Parameters

    • T
    Index
    element: HTMLElement
    • Returns void

    • Feed the onState callback of the slash or emoji trigger straight in here.

      Parameters

      • state: SuggestionListState<T> | null

      Returns void