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
big overall to how we do sidepanel drag&drop helper. see release notes.
121
121
* feat: [#2818](https://github.com/gridstack/gridstack.js/pull/2818) support for Angular Component hosting true sub-grids (that size according to parent) without requring them to be only child of grid-item-content.
122
+
* feat: Lazy loading of widget content until visible (`GridStackOptions.lazyLoad` and `GridStackWidget.lazyLoad`)
-`handleClass` - draggable handle class (e.g. `'grid-stack-item-content'`). If set `handle` is ignored (default: `null`)
108
108
-`itemClass` - widget class (default: `'grid-stack-item'`)
109
+
-`lazyLoad?`: boolean - true when widgets are only created when they scroll into view (visible). also overridable per widget in `GridStackWidget`
109
110
-`margin` - gap size around grid item and content (default: `10`). Can be:
110
111
* an integer (px)
111
112
* a string (ex: '2em', '20px', '2rem')
@@ -155,7 +156,7 @@ most of the above options are also available as HTML attributes using the `gs-`
155
156
Extras:
156
157
-`gs-current-row` - (internal) current rows amount. Set by the library only. Can be used by the CSS rules.
157
158
158
-
## Item Options
159
+
## Item Options - GridStackWidget
159
160
160
161
options you can pass when calling `addWidget()`, `update()`, `load()` and many others
161
162
@@ -174,6 +175,7 @@ You need to add `noResize` and `noMove` attributes to completely lock the widget
174
175
Note: This also allow you to set a maximum h value (but user changeable during normal resizing) to prevent unlimited content from taking too much space (get scrollbar)
175
176
-`subGrid`?: GridStackOptions - optional nested grid options and list of children
176
177
-`subGridDynamic`?: boolean - enable/disable the creation of sub-grids on the fly by dragging items completely over others (nest) vs partially (push). Forces `DDDragOpt.pause=true` to accomplish that.
178
+
-`lazyLoad?`: boolean - true when widgets are only created when they scroll into view (visible). also optin on entire grid.
/** true when widgets are only created when they scroll into view (visible) */
338
+
lazyLoad?: boolean;
334
339
/** local (vs grid) override - see GridStackOptions.
335
340
* Note: This also allow you to set a maximum h value (but user changeable during normal resizing) to prevent unlimited content from taking too much space (get scrollbar) */
0 commit comments