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
contextMenu: boolean| Item | Value |
|---|---|
| JavaScript name | contextMenu |
| HTML attribute | context-menu |
| Default | false |
| Input type | boolean |
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
- 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.