Resize Modes: Shift Neighbours or Grow Total
A grid option controls whether resizing a column changes the total grid width, or takes the space from the adjacent or remaining columns. Fixed-width layouts can then be resized without introducing horizontal scrolling.
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
6 columns fitted to the viewport, with a mode selector.
Expected behavior
In 'grow' mode the total width changes. In 'neighbour' mode the next column absorbs the delta, within its limits. In 'distribute' mode all columns to the right absorb the delta proportionally. Holding Shift during a drag temporarily switches between 'grow' and the configured alternative.
Planned API surface
gridOptions.columnResizeMode ('grow'|'neighbour'|'distribute')event:columnResizedAcceptance criteria
- In neighbour and distribute modes, the total width stays constant, within 1px. (pending)
- The resize stops when the absorbing columns reach their minWidth. (pending)
- The columnResized event lists all changed columns. (pending)
- The Shift modifier swap is documented and testable. (pending)