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
columnMenuItems: (context: GridColumnMenuContext) => readonly GridColumnMenuItem[]| Item | Value |
|---|---|
| JavaScript name | columnMenuItems |
| HTML attribute | column-menu-items |
| Default | undefined |
| 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
- Column menu
Column menus place sorting, filtering, and visibility controls near the current column. Keep them distinct from row actions in cell context menus and whole-column-list management in tool panels.