WarUI

Expandable Pivot Column Groups

GRID-A18-F07P1baselinePlanned

Lets users collapse a pivot column group so it shows only its subtotal, and expand it again to show its child columns. This keeps wide pivots readable. The expand state is per group and can be read or set through the API.

Planned. This page shows the specification from issue #198. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

Columns: Year > Quarter. Column subtotals are on. All year groups are expanded.

Expected behavior

Clicking a group header chevron collapses it to a single subtotal column. Clicking again restores the quarter columns. Column widths and the horizontal scroll position stay stable.

Planned API surface

pivot.columnGroupsCollapsiblesetPivotColumnGroupExpanded()getPivotColumnGroupState()onPivotColumnGroupToggle

Acceptance criteria

  • A collapsed group shows only its subtotal column. (pending)
  • The toggle fires onPivotColumnGroupToggle with the group key path. (pending)
  • The group expand state survives recomputation when the keys still exist. (pending)
  • Collapsing requires column subtotals. If subtotals are off, the chevron is hidden. (pending)