API REFERENCE

contextMenu

Displays a cell context menu. Use built-in copy, row copy, and CSV actions or replace the list through a callback.

What does this API do?

Displays a cell context menu. Use built-in copy, row copy, and CSV actions or replace the list through a callback.

API for Pro features: Built-in context menu

Exact input and result types

typescript
contextMenu: boolean
ItemValue
JavaScript namecontextMenu
HTML attributecontext-menu
Defaultfalse
Input typeboolean

Usage flow

Set this on a property of the Grid element. In HTML, you can also use the context-menu attribute. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.

Feature explanations and examples