@dxos/react-ui-editor
    Preparing search index...

    Type Alias PopoverOptions

    type PopoverOptions = {
        activateOnDelimiters?: string[];
        activateOnTyping?: boolean;
        delimiters?: string[];
        multiWordTriggers?: string[];
        onArrowDown?: (event: { view: EditorView }) => void;
        onArrowUp?: (event: { view: EditorView }) => void;
        onClose?: (event: { view: EditorView }) => void;
        onEnter?: (event: { view: EditorView }) => boolean | void;
        onTextChange?: (
            event: {
                pos: number;
                text: string;
                trigger?: string;
                view: EditorView;
            },
        ) => void;
        placeholder?: Partial<PlaceholderOptions>
        | false;
        trigger?: string | string[];
        triggerKey?: string;
    }
    Index

    Properties

    activateOnDelimiters?: string[]

    Delimiters after which an EMPTY token still opens the menu — type: offering every typename, say. Opt-in per consumer because the empty-token guard is load-bearing elsewhere: RefEditor uses activateOnTyping with no trigger, where an empty query would match every object.

    activateOnTyping?: boolean

    Open the popover automatically while typing a word (no trigger character required). The completion range covers the word under the cursor (delimited by PopoverOptions.delimiters).

    delimiters?: string[]
    multiWordTriggers?: string[]

    Triggers whose query may contain spaces (e.g. multi-word names). A double space, a leading space or a line break still ends it, and Escape keeps the typed text.

    onArrowDown?: (event: { view: EditorView }) => void
    onArrowUp?: (event: { view: EditorView }) => void
    onClose?: (event: { view: EditorView }) => void
    onEnter?: (event: { view: EditorView }) => boolean | void

    Returns true when the menu consumed the key (an item was selected); false falls through.

    onTextChange?: (
        event: { pos: number; text: string; trigger?: string; view: EditorView },
    ) => void
    placeholder?: Partial<PlaceholderOptions> | false

    Overrides the trigger hint shown in an empty, focused editor; false omits the hint.

    trigger?: string | string[]
    triggerKey?: string