WarUI

Drag to Resize a Column

GRID-A08-F01P0baselinePlanned

Users can widen or narrow a column by dragging a resize handle on the right edge of its header cell. This is the most basic column management feature. It lets users reveal truncated content without any configuration.

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

A grid of 8 columns at 120px each, with resizing enabled on all columns. A side log panel shows resize events.

Expected behavior

Hovering over a header edge shows a col-resize cursor and a highlighted handle. Dragging updates the column width live, and body cells follow the header. Releasing the pointer fires columnResized with finished=true. If a column is not resizable, it shows no handle and ignores dragging.

Planned API surface

columnDef.resizablecolumnDef.widthgridOptions.defaultColumnDefevent:columnResizeStartevent:columnResizingevent:columnResized

Acceptance criteria

  • The resize handle hit area is at least 6px wide and centred on the header's right border. (pending)
  • Header and body column widths stay identical during and after the drag. (pending)
  • The columnResized event payload contains columnId, oldWidth, newWidth and source='pointer'. (pending)
  • When resizable=false, no handle is rendered and pointer drags on the edge have no effect. (pending)
  • Text selection does not occur during a drag. (pending)