API REFERENCE

columnMenuItems

Builds column menu items from the current column context.

What does this API do?

Builds column menu items from the current column context.

API for Pro features: Built-in column menu

Exact input and result types

typescript
columnMenuItems: (context: GridColumnMenuContext) => readonly GridColumnMenuItem[]
ItemValue
JavaScript namecolumnMenuItems
HTML attributecolumn-menu-items
Defaultundefined
Input type(context: GridColumnMenuContext) => readonly GridColumnMenuItem[]

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