WarUI

Persisting Chrome State

GRID-A22-F25P2beyond-baselinePlanned

Toolbar density, sidebar open state and width, the active panel, status bar panel choices, and recent palette commands can be saved and restored together with the grid state. Users expect their workspace layout to survive a reload.

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

Live example

A grid with persistence off and a JSON viewer showing the current chrome state.

Expected behavior

With persistence on, changes are written under the configured key and restored when the grid is reloaded. The JSON viewer updates live.

Planned API surface

api.getChromeState()api.applyChromeState(state)gridOptions.persistence{key,storage:'local'|'session'|'custom',include}onChromeStateChange

Acceptance criteria

  • The state object is versioned, and unknown or old versions migrate or are ignored safely. (pending)
  • applyChromeState with a partial state changes only the keys it contains. (pending)
  • Writes are debounced (≥300 ms). (pending)
  • Nothing is sent over the network by default. (pending)