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
-`handleClass` - draggable handle class (e.g. `'grid-stack-item-content'`). If set `handle` is ignored (default: `null`)
@@ -159,7 +159,8 @@ You need to add `noResize` and `noMove` attributes to completely lock the widget
159
159
-`noMove` - disable element moving
160
160
-`id`- (number | string) good for quick identification (for example in change event)
161
161
-`content` - (string) html content to be added when calling `grid.load()/addWidget()` as content inside the item
162
-
-`sizeToContent` - make gridItem size itself to the content, calling `GridStack.resizeToContent(el)` whenever the grid or item is resized.
162
+
-`sizeToContent`?: boolean | number - make gridItem size itself to the content, calling `GridStack.resizeToContent(el)` whenever the grid or item is resized.
163
+
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)
163
164
-`subGrid`?: GridStackOptions - optional nested grid options and list of children
164
165
-`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.
/** local (grid) override - see GridStackOptions */
325
-
sizeToContent?: boolean;
324
+
/** local (vs grid) override - see GridStackOptions.
325
+
* 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) */
326
+
sizeToContent?: boolean|number;
326
327
/** optional nested grid options and list of children, which then turns into actual instance at runtime to get options from */
0 commit comments