Configuration for ContextMenu.

interface ContextMenuConfig {
    context?: any;
    enabled?: boolean;
    hideOnAction?: boolean;
    hideOnMouseDown?: boolean;
    items?: ContextMenuItemConfig[][];
    parentNode?: Node;
    title?: string;
}

Properties

context?: any

Arbitrary context object passed to item callbacks and resolvers.

enabled?: boolean

Whether the menu starts enabled.

Defaults to true.

hideOnAction?: boolean

Whether to hide the menu after an item action runs.

Defaults to true.

hideOnMouseDown?: boolean

Whether to hide the menu when a pointer-down occurs outside a menu item.

Defaults to true.

Root menu item groups.

parentNode?: Node

Parent DOM node that receives menu elements.

Defaults to document.body.

title?: string

Static title for the root menu.