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
- add `save()` and `restore()` to serialize grids from JSON, saving all attributes (not just w,h,x,y) [1286](https://github.com/gridstack/gridstack.js/issues/1286)
43
+
- add `save()` and `load()` to serialize grids from JSON, saving all attributes (not just w,h,x,y) [1286](https://github.com/gridstack/gridstack.js/issues/1286)
44
44
- add `margin` to replace `verticalMargin` which affects both dimensions in code, rather than one in code the other in CSS.
45
45
You can now have perfect square cells (default) [723](https://github.com/gridstack/gridstack.js/issues/723)
46
46
- fix [1299](https://github.com/gridstack/gridstack.js/pull/1299) many columns round-off error
- load the widgets from a list (see `save()`). This will call `update()` on each (matching by id) or add/remove widgets that are not there.
389
+
- Optional `addAndRemove` boolean (default true) or callback method can be passed to control if and how missing widgets can be added/removed, giving the user control of insertion.
390
+
391
+
- used to restore a grid layout for a saved layout list (see `save()`).
392
+
-`addAndRemove` boolean (default true) or callback method can be passed to control if and how missing widgets can be added/removed, giving the user control of insertion.
393
+
- see [example](http://gridstackjs.com/demo/serialization.html)
- used to restore a grid layout for a saved layout list (see `save()`).
494
-
- Optional `addAndRemove` can be passed if new widgets should be added or removed if the are not present (`id` is used to look items up)
495
-
- see [example](http://gridstackjs.com/demo/serialization.html)
496
-
497
500
### save(): GridStackWidget[]
498
501
499
-
- returns the layout of the grid that can be serialized (list of item non default attributes, not just w,y,x,y but also min/max and id). See `restore()`
502
+
- returns the layout of the grid that can be serialized (list of item non default attributes, not just w,y,x,y but also min/max and id). See `load()`
500
503
- see [example](http://gridstackjs.com/demo/serialization.html)
0 commit comments