WarUI

Grouping, aggregation and pivot state

GRID-A21-F04P1baselinePlanned

Captures row group columns and their order, the aggregation function chosen for each value column, and pivot configuration. This lets an analytical view be reconstructed with a single setState call instead of many separate API calls.

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

Live example

A sales grid with a group panel and an aggregation menu, and no grouping applied.

Expected behavior

Dragging columns into the group panel updates the grouping array in order. Changing an aggregation from sum to average updates the aggregation map. Re-applying the state rebuilds identical group rows and totals.

Planned API surface

getState().groupinggetState().aggregationgetState().pivotsetState({grouping, aggregation, pivot})onGroupingChange

Acceptance criteria

  • Grouping is stored as an ordered list of column ids. (pending)
  • Aggregations are stored by the registered aggregation function name, never as a function reference. (pending)
  • An unregistered aggregation name falls back to the column default and emits a restore warning. (pending)
  • Pivot state includes the pivot columns, the value columns and the pivot mode flag. (pending)
  • Restoring grouping does not implicitly restore group expansion, which belongs to the expansion slice. (pending)