From e9e7c8df219e3e21c3d8efa84ea4d585a2a24856 Mon Sep 17 00:00:00 2001 From: Javi Agenjo Date: Sun, 29 Mar 2020 20:50:20 +0200 Subject: [PATCH] Update README.md --- guides/README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/guides/README.md b/guides/README.md index 7f607bbfd..4059a7290 100644 --- a/guides/README.md +++ b/guides/README.md @@ -186,7 +186,14 @@ function MyNodeType() This is the list of supported widgets: * **"number"** to change a value of a number, the syntax is ```this.addWidget("number","Number", current_value, callback, { min: 0, max: 100, step: 1} );``` * **"slider"** to change a number by draging the mouse, the syntax is the same as number. -* **"combo"** to select between multiple choices, the syntax is: ```this.addWidget("combo","Combo", "red", callback, { values:["red","green","blue"]} );``` +* **"combo"** to select between multiple choices, the syntax is: + + ```this.addWidget("combo","Combo", "red", callback, { values:["red","green","blue"]} );``` + + or if you want to use objects: + + ```this.addWidget("combo","Combo", value1, callback, { values: { "title1":value1, "title2":value2 } );``` + * **"text"** to edit a short string * **"toggle"** like a checkbox * **"button"**