interface ContextMenuEntry {
    name: string;
    icon: string;
    classes: string;
    group: string;
    callback: ((arg0) => any);
    condition: boolean | ContextMenuCondition;
}

Properties

name: string

The context menu label. Can be localized.

icon: string

A string containing an HTML icon element for the menu item

classes: string

Additional CSS classes to apply to this menu item.

group: string

An identifier for a group this entry belongs to.

callback: ((arg0) => any)

The function to call when the menu item is clicked. Receives the HTML element of the entry that this context menu is for.

Type declaration

    • (arg0): any
    • Parameters

      • arg0: jQuery

      Returns any

condition: boolean | ContextMenuCondition

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