Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 82d15f2

Browse files
authored
Merge pull request gridstack#2068 from adumesny/master
doc update
2 parents 782aeee + e4e70d8 commit 82d15f2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

doc/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ You need to add `noResize` and `noMove` attributes to completely lock the widget
153153
- `resizeHandles` - widgets can have their own custom resize handles. For example 'e,w' will make that particular widget only resize east and west. See `resizable: {handles: string}` option
154154
- `id`- (number | string) good for quick identification (for example in change event)
155155
- `content` - (string) html content to be added when calling `grid.load()/addWidget()` as content inside the item
156-
- `subGrid`: GridStackOptions - optional nested grid options and list of children
156+
- `subGrid`?: GridStackOptions - optional nested grid options and list of children
157+
- `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.
157158

158159
## Item attributes
159160

src/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,8 @@ export interface GridStackOptions {
241241
/** list of differences in options for automatically created sub-grids under us */
242242
subGrid?: GridStackOptions;
243243

244-
/** enable/disable the creation of sub-grids on the fly (drop over other items) */
244+
/** enable/disable the creation of sub-grids on the fly by dragging items completely
245+
* over others (nest) vs partially (push). Forces `DDDragOpt.pause=true` to accomplish that. */
245246
subGridDynamic?: boolean;
246247
}
247248

0 commit comments

Comments
 (0)