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

Skip to content

Commit 7ed0366

Browse files
authored
Merge pull request gridstack#2906 from adumesny/master
attr `data-gs-widget` doc
2 parents e47b213 + b2e71f3 commit 7ed0366

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ Called during `GridStack.init()` as options, but can also be called directly (la
347347
* @param `dragIn` string selector (ex: `'.sidebar-item'`) or list of dom elements
348348
* @param `dragInOptions` options - see `DDDragOpt`. default: `{appendTo: 'body', helper: 'clone'}`
349349
* @param `widgets` GridStackWidget def to assign to each element which defines what to create on drop
350+
Note: you can instead use DOM attr `data-gs-widget` for complete JSON string of that GridStackWidget.
350351
* @param `root` optional root which defaults to document (for shadow dom pass the parent HTMLDocument)
351352

352353
### `GridStack.registerEngine(engineClass: typeof GridStackEngine)`

0 commit comments

Comments
 (0)