Collapsible Header Groups
Header groups can be expanded or collapsed to show either full detail columns or summary columns. Users can drill into detail only when they need it.
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
Four quarter groups, each with 3 month columns (showWhen 'open') and a total column (showWhen 'closed'). Q1 starts open.
Expected behavior
A chevron button in the group header toggles the group. When collapsed, only the 'closed' and 'always' children are shown. The group width adjusts, and the event fires with the groupId and new state.
Planned API surface
columnDef.showWhen ('open'|'closed'|'always')columnGroupDef.openByDefaultapi.setColumnGroupOpen(groupId, open)event:columnGroupOpenedChangedAcceptance criteria
- Visibility follows the showWhen rules for both states. (pending)
- The chevron has aria-expanded matching the group state. (pending)
- The event fires once per toggle. (pending)
- The collapse state is included in the column state (F22). (pending)