ContextMenuEntry¶
Interface ContextMenuEntry
interface ContextMenuEntry {
icon?: string;
isSeparator?: boolean;
isVisible?: ContextMenuVisibleCallback;
label?: string | ContextMenuLabelCallback;
onClick?: ContextMenuClickCallback;
onHover?: ContextMenuHoverCallback;
subEntries?: ContextMenuEntry[] | ContextMenuSubEntryCallback;
}
icon?: string;
isSeparator?: boolean;
isVisible?: ContextMenuVisibleCallback;
label?: string | ContextMenuLabelCallback;
onClick?: ContextMenuClickCallback;
onHover?: ContextMenuHoverCallback;
subEntries?: ContextMenuEntry[] | ContextMenuSubEntryCallback;
}
Index
Properties
Properties
Optionalicon
icon?: string
Optionalis Separator
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.
Optionalis Visible
Specifies a callback function which can be used to hide the context menu entry by a user defined logic.
Optionallabel
Specifies the label of the context menu entry. The label can be set static or dynamic via a ContextMenuLabelCallback.
Optionalon Click
Specifies a callback function which is executed when the context menu entry is clicked.
Optionalon Hover
Specifies a callback function which is executed when the context menu entry is hovered.
Optionalsub Entries
Specifies a list of sub entries. The sub entries can be set as a static list or as a dynamic list via a ContextMenuSubEntryCallback.
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