WarUI

Pivot State Save and Restore

GRID-A18-F12P1baselinePlanned

Serializes the full pivot configuration to JSON and restores it. This covers zones, aggregation functions, show-as modes, totals, sorts, filters, and expand states. It supports saved views, URL sharing and user preferences without any server dependency.

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

A configured pivot with a JSON state viewer below it.

Expected behavior

Restoring a slot reproduces the exact layout. Invalid JSON or unknown fields produce validation messages without breaking the grid.

Planned API surface

getPivotState()setPivotState()pivot.stateVersiononPivotStateChange

Acceptance criteria

  • Applying getPivotState() output with setPivotState() is idempotent and gives an identical rendered result. (pending)
  • The state includes a version number. Older versions are migrated or rejected with a clear error. (pending)
  • Unknown fields in the state are skipped with a warning. (pending)
  • The state contains no row data. (pending)