Skip to content

Commit

Permalink
attr data-gs-widget doc
Browse files Browse the repository at this point in the history
* more fix gridstack#2900
  • Loading branch information
adumesny committed Dec 29, 2024
1 parent 2e31661 commit b2e71f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ Called during `GridStack.init()` as options, but can also be called directly (la
* @param `dragIn` string selector (ex: `'.sidebar-item'`) or list of dom elements
* @param `dragInOptions` options - see `DDDragOpt`. default: `{appendTo: 'body', helper: 'clone'}`
* @param `widgets` GridStackWidget def to assign to each element which defines what to create on drop
Note: you can instead use DOM attr `data-gs-widget` for complete JSON string of that GridStackWidget.
* @param `root` optional root which defaults to document (for shadow dom pass the parent HTMLDocument)

### `GridStack.registerEngine(engineClass: typeof GridStackEngine)`
Expand Down

0 comments on commit b2e71f3

Please sign in to comment.