You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`cellHeightThrottle`?: number - throttle time delay (in ms) used when cellHeight='auto' to improve performance vs usability (default?: 100).
88
88
* A value of 0 will make it instant at a cost of re-creating the CSS file at ever window resize event!
89
89
-`children`?: GridStackWidget[] - list of children item to create when calling load() or addGrid()
90
-
-`column` - number of columns (default: `12`) which can change on the fly with `column(N)`as well. See [example](http://gridstackjs.com/demo/column.html)
90
+
-`column` - Integer > 0 (default 12) which can change on the fly with `column(N)`API, or `'auto'` for nested grids to size themselves to the parent grid container (to make sub-items are the same size). See [column](http://gridstackjs.com/demo/column.html) and [nested](http://gridstackjs.com/demo/nested.html)
91
91
-`class`?: string - additional class on top of '.grid-stack' (which is required for our CSS) to differentiate this instance
92
92
-`disableDrag` - disallows dragging of widgets (default: `false`).
93
93
-`disableOneColumnMode` - disables the onColumnMode when the grid width is less than minW (default: 'false')
@@ -372,14 +372,14 @@ Gets current cell width (grid width / # of columns).
372
372
373
373
Ends batch updates. Updates DOM nodes. You must call it after `batchUpdate()`.
374
374
375
-
### `column(column: number | 'auto', layout: ColumnOptions = 'moveScale')`
set the number of columns in the grid. Will update existing widgets to conform to new number of columns,
378
378
as well as cache the original layout so you can revert back to previous positions without loss.
379
379
Requires `gridstack-extra.css` (or minimized version) for [2-11],
380
380
else you will need to generate correct CSS (see https://github.com/gridstack/gridstack.js#change-grid-columns)
381
381
382
-
-`column` - Integer > 0 (default 12), or 'auto' for nested grids to size themselves to the parent grid container (to make su-items the same size inside and outside)
382
+
-`column` - Integer > 0 (default 12)
383
383
-`layout` - specify the type of re-layout that will happen (position, size, etc...).
384
384
Note: items will never be outside of the current column boundaries. default ('moveScale'). Ignored for 1 column.
0 commit comments