Keyboard Column Resizing
With a header cell focused, users can resize the column using keyboard shortcuts. This is a WCAG-friendly alternative to pointer dragging.
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
An 8-column grid with an on-screen panel listing the keyboard shortcuts.
Expected behavior
Alt+ArrowRight and Alt+ArrowLeft change the width by one step, and adding Shift uses the large step. The direction of the arrow keys is reversed in RTL. Focus stays on the header throughout. The live region announces the new width, or announces that a limit was reached.
Planned API surface
gridOptions.keyboardResizeStepgridOptions.keyboardResizeLargeStepevent:columnResizedAcceptance criteria
- Each keypress changes the width by exactly one step, clamped to the limits. (pending)
- Focus remains on the same header cell. (pending)
- The live region announces '<header> width N pixels'. (pending)
- The columnResized event fires with source='keyboard'. (pending)
- Columns with resizable=false ignore the shortcut and announce 'not resizable'. (pending)