Skip to content

Column header menu

Click a column header to open its actions; click it again to close the menu.

Install ColumnHeaderMenuPlugin to provide the shared column menu without enabling formatting or cell inspection. It adds the context-menu and column-dialog dependencies as needed.

import { ColumnHeaderMenuPlugin } from '@revolist/revogrid-pro';
grid.plugins = [ColumnHeaderMenuPlugin];
grid.columns = [
{ prop: 'name', name: 'Task', sortable: true },
{ prop: 'score', name: 'Score', sortable: true },
];

Configure the menu’s commands and translated labels with grid.dataGridContextMenu. Set it to false to disable the menu. Interactive header controls keep their normal behavior; mark a custom button with data-column-menu-trigger to make it a menu trigger. See the context menu guide for menu configuration.