From e4e70d80f7d6d616476f2f0b9f793edf8165126c Mon Sep 17 00:00:00 2001 From: Alain Dumesny Date: Sun, 9 Oct 2022 09:17:30 -0700 Subject: [PATCH] doc update --- doc/README.md | 3 ++- src/types.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/README.md b/doc/README.md index 3f1cbc205..59778260b 100644 --- a/doc/README.md +++ b/doc/README.md @@ -153,7 +153,8 @@ You need to add `noResize` and `noMove` attributes to completely lock the widget - `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 - `id`- (number | string) good for quick identification (for example in change event) - `content` - (string) html content to be added when calling `grid.load()/addWidget()` as content inside the item -- `subGrid`: GridStackOptions - optional nested grid options and list of children +- `subGrid`?: GridStackOptions - optional nested grid options and list of children +- `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. ## Item attributes diff --git a/src/types.ts b/src/types.ts index e0ed0cf61..03f438c51 100644 --- a/src/types.ts +++ b/src/types.ts @@ -241,7 +241,8 @@ export interface GridStackOptions { /** list of differences in options for automatically created sub-grids under us */ subGrid?: GridStackOptions; - /** enable/disable the creation of sub-grids on the fly (drop over other items) */ + /** 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. */ subGridDynamic?: boolean; }