[]
        
(Showing Draft Content)

GC.Spread.Sheets.ContextMenu.IMenuItemData

Interface: IMenuItemData

Sheets.ContextMenu.IMenuItemData

Table of contents

Properties

Properties

command

Optional command: string | Function

Represents a command name.


commandOptions

Optional commandOptions: any

Represents additional options passed to the command when executed.


disable

Optional disable: boolean

Represents whether this context menu item is disabled.


group

Optional group: string

Represents this context menu item is a group menu item and this property's value should be its group header's name.


iconClass

Optional iconClass: string

Represents this context menu item's icon.


itemClass

Optional itemClass: string

Represents additional CSS class names to be applied to the menu item.


Optional menuContent: string

Represents custom HTML content for the menu item.


metaData

Optional metaData: ICommandMetaData

Represents metadata associated with the command, such as permission requirements.


name

Optional name: string

Represents context menu item's identifier.


needKeepFocus

Optional needKeepFocus: boolean

Represents whether the spreadsheet should maintain focus after executing this menu item.


placeholder

Optional placeholder: string

Represents a placeholder value used for dynamic menu item text replacement.


status

Optional status: any

Represents the status or state information for the menu item.


Optional subMenu: IMenuItemData[]

Represents this context menu item has sub menu.


text

Optional text: string

Represents the text to be shown.


title

Optional title: string

Represents the tooltip title for the menu item.


type

Optional type: string

Represents a context menu's type. Common values include "separator", "groupHeader", or "splitSubMenu".


visible

Optional visible: boolean

Represents whether this menu item is visible.


workArea

Optional workArea: string

Represents on which area this context menu item should be shown. Value can be a collection of conditions separated by whitespace. Include: "outline", "rowHeader", "colHeader", "corner", "slicer", "chart", "shape", "table", "vpWithoutTb", "pivotPageFilter", "pivotTopLeft", "pivotEmptyLabel", "pivotHeader", "pivotGrandTotal", "pivotContent", "pivotTable", "sheetTab", "timeline".