WarUI

Column Visibility Toggle

GRID-A08-F12P0baselinePlanned

Columns can be shown or hidden through their definition or through the API, without being removed from the column model. Hidden columns keep their width, position and pinned state, so these are restored when the column is shown again.

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

Live example

10 columns with 'Internal Cost' hidden. Checkboxes appear above the grid.

Expected behavior

Toggling a checkbox hides or shows the column immediately. A re-shown column returns to its original position, width and pin side. The event fires once per batch call.

Planned API surface

columnDef.hiddenapi.setColumnsVisible(columnIds, visible)api.isColumnVisible(columnId)event:columnVisibilityChanged

Acceptance criteria

  • A hidden column keeps its width, index and pinned state. (pending)
  • setColumnsVisible with multiple ids emits a single event. (pending)
  • aria-colcount and aria-colindex are updated to exclude hidden columns. (pending)
  • Hiding the last visible column is allowed, and an empty-state message appears. (pending)