# contextMenu

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

Canonical: https://grid.syidax.com/docs/options/contextMenu/

<a id="meaning"></a>

## 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

<a id="contract"></a>

## Exact input and result types

```typescript
contextMenu: boolean
```

| Item | Value |
| --- | --- |
| JavaScript name | contextMenu |
| HTML attribute | context-menu |
| Default | false |
| Input type | boolean |

<a id="usage"></a>

## 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.

<a id="recipes"></a>

## Feature explanations and examples

- [Cell context menus](https://grid.syidax.com/docs/features/context-menu.md) — 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.
