From c05c531035558b3a37e6b4220e659d71c756423e Mon Sep 17 00:00:00 2001 From: Javi Agenjo Date: Sat, 13 Apr 2019 10:41:44 +0200 Subject: [PATCH] Update README.md --- guides/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/guides/README.md b/guides/README.md index e34c960b03..caad9239ea 100644 --- a/guides/README.md +++ b/guides/README.md @@ -176,6 +176,16 @@ This is the list of supported widgets: * **"toggle"** like a checkbox * **"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 To integrate in you HTML application: