Header Context Menu
Each header has a built-in menu, opened by a menu button, right-click or keyboard. It offers common actions: pin left or right, autosize, hide, reset and open the chooser. All column management becomes discoverable from one place.
Planned. This page shows the specification from issue #185. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A 12-column grid with the menu button visible on header hover and focus.
Expected behavior
The menu opens next to the header with the items Pin (submenu), Autosize this column, Autosize all, Hide column, Choose columns and Reset columns. Disabled items reflect the column's locks. Selecting an item performs the action and closes the menu.
Planned API surface
gridOptions.headerMenucolumnDef.suppressHeaderMenuapi.openHeaderMenu(columnId)event:headerMenuOpenedevent:headerMenuItemSelectedAcceptance criteria
- The menu opens on button click, right-click and Shift+F10 or the ContextMenu key. (pending)
- The current pin state shows a checkmark in the Pin submenu. (pending)
- Locked actions are shown as disabled with aria-disabled, not removed. (pending)
- Focus returns to the header when the menu closes. (pending)