interface ContextMenuEntry {
    callback: ContextMenuJQueryCallback;
    classes?: string;
    condition?: boolean | ContextMenuCondition;
    group?: string;
    icon?: string;
    name: string;
}

Properties

The function to call when the menu item is clicked.

classes?: string

Additional CSS classes to apply to this menu item.

condition?: boolean | ContextMenuCondition

A function to call or boolean value to determine if this entry appears in the menu.

group?: string

An identifier for a group this entry belongs to.

icon?: string

A string containing an HTML icon element for the menu item.

name: string

The context menu label. Can be localized.