Options for configuring the context menu.

interface Options {
    eventName?: string;
    fixed?: boolean;
    jQuery?: boolean;
    onClose?: ContextMenuCallback;
    onOpen?: ContextMenuCallback;
    parent?: SohlLogic;
}

Properties

eventName?: string

DOM event name that triggers the menu (e.g. "contextmenu").

fixed?: boolean

When true, the menu uses fixed positioning.

jQuery?: boolean

When true, the base class operates in jQuery-compatibility mode.

Invoked when the menu closes.

Invoked when the menu opens.

parent?: SohlLogic

The owning document's logic, used as the parent for any string (SafeExpression) entry conditions compiled by the menu.