mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-27 09:45:13 +00:00
widgets can now be serialized if you set node.serialize_widgets = true
This commit is contained in:
@@ -92,6 +92,7 @@ function TestWidgetsNode()
|
||||
this.toggle = this.addWidget("toggle","Toggle", true, function(v){}, { on: "enabled", off:"disabled"} );
|
||||
this.button = this.addWidget("button","Button", null, function(v){}, {} );
|
||||
this.size = this.computeSize();
|
||||
this.serialize_widgets = true;
|
||||
}
|
||||
|
||||
TestWidgetsNode.title = "Widgets";
|
||||
|
||||
Reference in New Issue
Block a user