mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 11:11:53 +00:00
Update README.md
This commit is contained in:
@@ -176,6 +176,16 @@ This is the list of supported widgets:
|
|||||||
* **"toggle"** like a checkbox
|
* **"toggle"** like a checkbox
|
||||||
* **"button"**
|
* **"button"**
|
||||||
|
|
||||||
|
Widget's value is not serialized by default when storing the node state, but if you want to store the value of widgets just set serialize_widgets to true:
|
||||||
|
|
||||||
|
```
|
||||||
|
function MyNode()
|
||||||
|
{
|
||||||
|
this.addWidget("text","name","");
|
||||||
|
this.serialize_widgets = true;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Integration
|
## Integration
|
||||||
|
|
||||||
To integrate in you HTML application:
|
To integrate in you HTML application:
|
||||||
|
|||||||
Reference in New Issue
Block a user