ContextMenuEntry

Interface ContextMenuEntry

interface ContextMenuEntry {
    icon?: string;
    isSeparator?: boolean;
    isVisible?: ContextMenuVisibleCallback;
    label?: string | ContextMenuLabelCallback;
    onClick?: ContextMenuClickCallback;
    onHover?: ContextMenuHoverCallback;
    subEntries?: ContextMenuEntry[] | ContextMenuSubEntryCallback;
}
Index

Properties

icon?: string

Specifies the leading icon of the context menu entry. The Icon is specified as a string which references a custom Icon in the form: custom:my-icon-id

undefined
isSeparator?: boolean

Specifies if the context menu entry is handled as a simple separation line. In that case all other properties except for the visible-Callback are ignored.

false

Specifies a callback function which can be used to hide the context menu entry by a user defined logic.

undefined
label?: string | ContextMenuLabelCallback

Specifies the label of the context menu entry. The label can be set static or dynamic via a ContextMenuLabelCallback.

Specifies a callback function which is executed when the context menu entry is clicked.

undefined

Specifies a callback function which is executed when the context menu entry is hovered.

undefined

Specifies a list of sub entries. The sub entries can be set as a static list or as a dynamic list via a ContextMenuSubEntryCallback.

undefined