目录

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.

ParameterTypeDescription
optionsContextMenuItemBaseOptionsThe options for constructing the context menu item.