ContextMenuEntry¶
Type Alias ContextMenuEntry
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;
}
Type declaration
Optionalicon?: stringOptionalisSeparator?: booleanSpecifies 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.
OptionalisVisible?: ContextMenuVisibleCallbackSpecifies a callback function which can be used to hide the context menu entry by a user defined logic.
Optionallabel?: string | ContextMenuLabelCallbackSpecifies the label of the context menu entry. The label can be set static or dynamic via a ContextMenuLabelCallback.
OptionalonClick?: ContextMenuClickCallbackSpecifies a callback function which is executed when the context menu entry is clicked.
OptionalonHover?: ContextMenuHoverCallbackSpecifies a callback function which is executed when the context menu entry is hovered.
OptionalsubEntries?: ContextMenuEntry[] | ContextMenuSubEntryCallbackSpecifies 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