WarUI

Runtime column definition updates and dev validation

GRID-A07-F28P1beyond-baselinePlanned

Columns can be replaced or patched at runtime via `setColumns` and `updateColumn`. Definitions are matched by id so that user state such as width, order, sort and pinning is preserved. A dev-mode validator reports unknown keys, conflicting options and a11y omissions with actionable messages, and the validator is stripped from production builds.

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

Live example

A grid with 6 columns that the user has resized and reordered. A JSON definition editor sits beside it.

Expected behavior

Applying edits updates the rendering while keeping widths and order when preservation is on. The validator lists issues such as an unknown key 'widht' with a 'did you mean width' suggestion.

Planned API surface

setColumnsupdateColumngetColumnsonColumnsChangevalidateColumnsdevWarnings

Acceptance criteria

  • Column state is preserved by id across setColumns when preserveState is true. (pending)
  • updateColumn patches a single column and re-renders only that column's cells. (pending)
  • The validator reports unknown keys with suggestions, conflicting options and a missing header or ariaLabel. (pending)
  • Production builds exclude the validator code, verified by a bundle-size test. (pending)