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
Copy file name to clipboardExpand all lines: demo/nested.html
+25-11Lines changed: 25 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -21,13 +21,19 @@
21
21
<divclass="container-fluid">
22
22
<h1>Nested grids demo</h1>
23
23
<p>This example uses new v3.1 API to load the entire nested grid from JSON, and shows dragging between nested grid items (pink) vs dragging higher grid items (green)</p>
24
-
<p>Note: initial v3 HTML5 release doesn't support 'dragOut:false' constrain so use jq version if you need that.</p>
24
+
<p>Note: HTML5 release doesn't yet support 'dragOut:false' constrain so use JQ version if you need that.</p>
* better doc for save [#1795](https://github.com/gridstack/gridstack.js/issues/1795)
66
+
* fix [#1795](https://github.com/gridstack/gridstack.js/issues/1795)`save(false)` will no longer have `.content` field (removed existing one if present)
67
+
* fix [#1782](https://github.com/gridstack/gridstack.js/issues/1782)`save(false, false)` now correctly saves nested grids
saves the current layout returning a list of widgets for serialization which might include any nested grids.
528
-
-`saveContent` if true (default) the latest html inside `.grid-stack-content` will be saved to `GridStackWidget.content` field, else it will be left unchanged for initial load values.
528
+
-`saveContent` if true (default) the latest html inside `.grid-stack-content` will be saved to `GridStackWidget.content` field, else it will be removed.
529
529
-`saveGridOpt` if true (default `false`), save the grid options itself, so you can call the new `GridStack.addGrid()` to recreate everything from scratch. GridStackOptions.children would then contain the widget list instead.
530
530
- returns list of widgets or full grid option, including .children list of widgets
531
531
- see [serialization](http://gridstackjs.com/demo/serialization.html) and [nested](http://gridstackjs.com/demo/nested.html)
0 commit comments