Minimum and Maximum Width Limits
Each column can set minWidth and maxWidth. Every sizing path respects them, including drag, autosize, fit and flex. This prevents columns from collapsing into uselessness or growing unbounded.
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
Four columns. 'Status' has minWidth 90; 'Comment' has flex 1 and maxWidth 300.
Expected behavior
Dragging stops at the limits, and a visual stop indicator shows on the handle. Autosize, fit and flex all clamp to the limits. When a flex column hits its maxWidth, the surplus space goes to the other flex columns.
Planned API surface
columnDef.minWidthcolumnDef.maxWidthgridOptions.defaultColumnDef.minWidthAcceptance criteria
- No sizing path produces a width outside [minWidth, maxWidth]. (pending)
- Flex surplus is redistributed when a column is clamped. (pending)
- If minWidth > maxWidth, a dev warning is logged and minWidth wins. (pending)
- The grid-wide default minWidth applies when a column has no minWidth of its own. (pending)