ContextMenuItemBase
Extends: ContextMenuElement
A base class that implements the common functionality for all context menu items.
Properties
label
readonly label?: string;
The label of the context menu item.
enabled
readonly enabled?: boolean;
Whether the context menu item is enabled.
action
readonly action?: (item: T) => void;
The action to perform when the context menu item is clicked.
Methods
constructor()
constructor(options: ContextMenuItemBaseOptions<T>): void;
Creates a new context menu item.
| Parameter | Type | Description |
|---|---|---|
options | ContextMenuItemBaseOptions | The options for constructing the context menu item. |