WarUI

Column state: order, width, visibility and flex

GRID-A21-F02P0baselinePlanned

Captures each column's order, width, flex, visibility and auto-size status, keyed by a stable column id. Column state is the slice users customise most often, so it must restore exactly even when column definitions are declared in a different order.

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 12-column grid with column chooser and resize handles enabled.

Expected behavior

The user reorders, resizes and hides columns, and the columns slice updates live. With the shuffle toggle on, a remount still restores the user's order because ordering is keyed by column id rather than by definition index.

Planned API surface

getState().columnssetState({columns})columnIdapplyColumnOrderonColumnStateChange

Acceptance criteria

  • Each column entry contains id, order index, width or flex, and hidden flag. (pending)
  • Restoring the state is independent of the order in which column definitions are declared. (pending)
  • Widths below a column's minimum width or above its maximum width are clamped when restored. (pending)
  • Columns not present in the saved state keep their definition defaults and are appended in definition order. (pending)
  • Column group (header band) open or collapsed state is included in the slice. (pending)