WarUI

Pinning state for columns and rows

GRID-A21-F05P1baselinePlanned

Persists left and right column pinning as well as top and bottom pinned rows, with rows referenced by row id. Pinning is stored separately from column order so that unpinning a column returns it to its prior position.

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 grid with column pinning and row pinning enabled, and nothing pinned.

Expected behavior

The pinning slice lists pinned column ids per side and pinned row ids per edge. After a restore, pinned rows reappear by id. If a pinned row has been removed from the data, it is skipped and a warning is shown.

Planned API surface

getState().pinningsetState({pinning})getRowIdonPinningChange

Acceptance criteria

  • Column pinning is stored as separate left and right arrays of column ids. (pending)
  • Row pinning is stored as top and bottom arrays of row ids and requires getRowId. (pending)
  • If getRowId is not configured, row pinning is excluded from the state and a development-mode warning explains why. (pending)
  • Unpinning a column after a restore returns it to its order position as recorded in the column slice. (pending)
  • Stale pinned row ids are dropped without error. (pending)