Flex Column Widths
Columns can declare a flex factor so they share the remaining horizontal space proportionally, while fixed-width columns keep their width. This gives a responsive layout without imperative fit calls.
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
Two fixed columns (80px and 140px) and two flex columns with flex values 2 and 1, inside a resizable container.
Expected behavior
The flex columns split the remaining width in proportion to their flex values, and they recompute when the container width changes. If a user drag-resizes a flex column, that column becomes fixed at the new width, and the flex columns to its right redistribute the remaining space.
Planned API surface
columnDef.flexcolumnDef.widthevent:columnResizedAcceptance criteria
- Flex column widths are proportional to their flex values, within 1px rounding. (pending)
- Fixed columns are unaffected by container resizing. (pending)
- After a user resizes a flex column, its flex value becomes undefined and its width becomes fixed. This is reflected in the column state. (pending)
- flex takes precedence over width when both are provided, and a dev warning is logged. (pending)