Interface ContextMenuEntryInterface

A context menu entry with a name and an icon that invokes the callback function when clicked.

interface ContextMenuEntryInterface {
    callback: Function;
    disabled?: boolean;
    icon: string;
    key?: string;
    name: string;
}

Properties

callback: Function

Specifies the callback to execute if clicked on

disabled?: boolean

Specifies whether this context menu option should be disabled

icon: string

Specifies the icon class to set for the item

key?: string

Key for the entry, only one entry is shown per unique key

name: string

Specify the human readable name of the command in the menu. This is used as the label for the option