ContextMenuSettingsModel
9 Jul 20261 minute to read
Interface for a class ContextMenuSettings
Properties
enable boolean
Specifies whether the context menu is enabled.
If set to false, the context menu will not be displayed.
itemTemplate string|Function
Specifies a custom template for menu items.
Accepts either a string template or a function returning a custom template.
items ContextMenuItemModel[]
Specifies the list of context menu items.
link string[]|LinkCommandName[]|ContextMenuItemModel[]
Specifies an array of command item models representing the available commands in the link context menu.
This property holds the list of commands that appear in the link context menu.
Users can customize or disable link operations by providing custom link items.
showItemOnClick boolean
Specifies whether menu items should only be shown when clicked.
If set to true, submenu items appear only when the parent item is clicked.
table string[]|TableCommandName[]|ContextMenuItemModel[]
Specifies an array of command item models representing the available commands in the table context menu.
This property holds the list of commands that appear in the table context menu.
Users can customize or disable table operations by providing custom table items.
Events
beforeClose EmitType<ContextMenuBeforeCloseEventArgs>
Triggers before the context menu closes.
beforeOpen EmitType<ContextMenuBeforeOpenEventArgs>
Triggers before the context menu opens.
itemSelect EmitType<ContextMenuItemSelectEventArgs>
Triggers when an item in the context menu is being clicked.
This event provides details about the clicked menu item.