ContextMenuItemProps
Defines the properties for configuring individual context menu items in the grid. Extends Syncfusion MenuItemProps to provide additional grid-specific customization. Used to create custom context menu items with specialized behavior and targeting.
Props
The following table outlines the props for the ContextMenuItemProps:
| Name | Type | Default | Description |
|---|---|---|---|
| children | node | - | Specifies the content of the menu item. Can be text or any valid React node. |
| className | string | - | Specifies an optional CSS class to apply to the menu item. |
| disabled | boolean | false | Specifies whether the menu item is disabled. |
| icon | Element | undefined | Specifies the icon to display for the context menu item. Used to visually represent the menu item in the context menu interface. |
| id | string | undefined | Specifies the unique identifier for the context menu item. Used to identify the menu item in event handlers and for custom logic. |
| items | - | Specifies nested sub-items for creating hierarchical context menu structures. Used to define sub-menus under parent menu items for organizing related actions. | |
| target | string | undefined | Specifies the target element or context to which the menu item applies. Used to define context-specific behavior, such as menu items appearing only for certain cell types or row states. |
| text | string | - | Specifies the display text for the context menu item. Used to label the menu item in the context menu interface. |