Trevixal API
    Preparing search index...

    Interface MenuItem

    One entry in a menu. A separator draws a rule and takes no action.

    interface MenuItem {
        icon?: IconName;
        isActive?: (snapshot: EditorSnapshot) => boolean;
        isEnabled?: (snapshot: EditorSnapshot) => boolean;
        items?: readonly MenuItem[];
        label: string;
        name: string;
        run?: (editor: Editor) => void;
        separator?: boolean;
        shortcut?: string;
    }
    Index
    icon?: IconName
    isActive?: (snapshot: EditorSnapshot) => boolean
    isEnabled?: (snapshot: EditorSnapshot) => boolean
    items?: readonly MenuItem[]

    Nested submenu, rendered as a flyout.

    label: string
    name: string
    run?: (editor: Editor) => void
    separator?: boolean
    shortcut?: string

    Shown right-aligned, e.g. "Ctrl+B". Display only, bind keys in the keymap, or pass shortcutLabels so the shortcut manager decides what is printed and this default is ignored.