[]
Sheets.ContextMenu.IMenuItemData
• Optional command: string | Function
Represents a command name.
• Optional commandOptions: any
Represents additional options passed to the command when executed.
• Optional disable: boolean
Represents whether this context menu item is disabled.
• 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.
• Optional iconClass: string
Represents this context menu item's icon.
• 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.
• Optional metaData: ICommandMetaData
Represents metadata associated with the command, such as permission requirements.
• Optional name: string
Represents context menu item's identifier.
• Optional needKeepFocus: boolean
Represents whether the spreadsheet should maintain focus after executing this menu item.
• Optional placeholder: string
Represents a placeholder value used for dynamic menu item text replacement.
• Optional status: any
Represents the status or state information for the menu item.
• Optional subMenu: IMenuItemData[]
Represents this context menu item has sub menu.
• Optional text: string
Represents the text to be shown.
• Optional title: string
Represents the tooltip title for the menu item.
• Optional type: string
Represents a context menu's type. Common values include "separator", "groupHeader", or "splitSubMenu".
• Optional visible: boolean
Represents whether this menu item is visible.
• 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".