From b2e71f3ca51ab0feeb319f636990adfc233d9d8c Mon Sep 17 00:00:00 2001 From: Alain Dumesny Date: Sun, 29 Dec 2024 12:59:55 -0800 Subject: [PATCH] attr `data-gs-widget` doc * more fix #2900 --- doc/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/README.md b/doc/README.md index 1dd5c8d8f..655b4677d 100644 --- a/doc/README.md +++ b/doc/README.md @@ -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)`