API REFERENCE
contextMenuItemsCallback
Returns cell context-menu items. Replaces the entire default list rather than appending to it.
What does this API do?
Returns cell context-menu items. Replaces the entire default list rather than appending to it.
API for Pro features: Built-in context menu
Exact input and result types
contextMenuItemsCallback: (
ctx: ContextMenuContext<GridRow>,
) => ContextMenuItem<GridRow>[]| Item | Value |
|---|---|
| JavaScript name | contextMenuItemsCallback |
| HTML attribute | context-menu-items-callback |
| Default | undefined |
| Input type | ( ctx: ContextMenuContext<GridRow>, ) => ContextMenuItem<GridRow>[] |
Usage flow
Set this on a property of the Grid element. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.
Read related types
Feature explanations and examples
- Cell context menus
A cell's context menu offers actions such as Copy, Copy row, and Export for the current location. Also provide toolbar or keyboard access to frequently used features.