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
-`removeAll()` is now much faster (no relayout) and calls `removed` event just once with a list
35
+
-`removeAll()` is now much faster (no relayout) and calls `removed` event just once with a list [#1097](https://github.com/gridstack/gridstack.js/pull/1097)
36
+
-`setColumn()` complete re-write and is no longer "Experimental". We now do a reasonable job at sizing/position the widgets (especially 1 column) and
37
+
also now cache each column layout so you can go back to say 12 column and not loose original layout. [#1098](https://github.com/gridstack/gridstack.js/pull/1098)
38
+
- fix bug where `addWidget(el)` (default values) would not render item at correct CSS location, and overlap item at (0,0) [#1098](https://github.com/gridstack/gridstack.js/pull/1098)
Copy file name to clipboardExpand all lines: doc/README.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -445,9 +445,12 @@ Toggle the grid animation state. Toggles the `grid-stack-animate` class.
445
445
446
446
### setColumn(column, doNotPropagate)
447
447
448
-
(Experimental) Modify number of columns in the grid. Will attempt to update existing widgets to conform to new number of columns. Requires `gridstack-extra.css` or `gridstack-extra.min.css`.
448
+
Modify number of columns in the grid. Will update existing widgets to conform to new number of columns,
449
+
as well as cache the original layout so you can revert back to previous positions without loss.
450
+
Requires `gridstack-extra.css` or `gridstack-extra.min.css` for [1-11],
451
+
else you will need to generate correct CSS (see https://github.com/gridstack/gridstack.js#change-grid-columns)
449
452
450
-
-`column` - Integer between 1 and 12.
453
+
-`column` - Integer > 0 (default 12).
451
454
-`doNotPropagate` - if true existing widgets will not be updated.
0 commit comments