Interface ContextMenuItem

Represents an item in a context menu shown by calling ContextMenu.show.

interface ContextMenuItem {
    checked?: boolean;
    enabled: boolean;
    text: string;
    tooltip?: string;
}

Properties

checked?: boolean

Specifies a value indicating whether this item is checked. If not defined, this item will not be rendered in a checked state.

enabled: boolean

Specifies whether this item is enabled.

text: string

Specifies the text to show in this item.

tooltip?: string

Specifies the tooltip to show for this item. If not defined, no tooltip will be shown when hovering the this item.