Page 1 of 1

[Dashboard] How to use controls?

Posted: Wed Apr 12, 2023 6:17 am
by IoTStudio Support
This flow includes one button node, one dropdown node, one switch node and one slider node. Those controls has been triggered or changed, they will send the relative info to debug node for review or further processing。
dashboard controls 1
dashboard controls 1
dashboard controls 1.PNG (6 KiB) Viewed 7074 times
dashboard controls 2
dashboard controls 2
dashboard controls 2.PNG (22.37 KiB) Viewed 7074 times
Flow:

Code: Select all

[{"id":"5a5e0776.30c7b4","type":"tab","label":"AIC IoT Studio - Gauge","disabled":false,"info":""},{"id":"a9a9c052.9068f8","type":"ui_button","z":"5a5e0776.30c7b4","name":"","group":"23d3e331.b3cf3","order":1,"width":4,"height":1,"passthru":false,"label":"Button","tooltip":"","color":"","bgcolor":"","icon":"","payload":"Button clicked","payloadType":"str","topic":"","x":330,"y":80,"wires":[["2ddc1704.baa19"]]},{"id":"373eeef6.11653c","type":"ui_dropdown","z":"5a5e0776.30c7b4","name":"","label":"Dropdown","tooltip":"","place":"Select option","group":"23d3e331.b3cf3","order":2,"width":4,"height":1,"passthru":true,"multiple":false,"options":[{"label":"item1","value":"item1","type":"str"},{"label":"item2","value":"item2","type":"str"},{"label":"item3","value":"item3","type":"str"}],"payload":"","topic":"","topicType":"str","className":"","x":350,"y":140,"wires":[["2ddc1704.baa19"]]},{"id":"645a91ce.9d508c","type":"ui_switch","z":"5a5e0776.30c7b4","name":"","label":"Switch","tooltip":"","group":"23d3e331.b3cf3","order":3,"width":4,"height":1,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":330,"y":200,"wires":[["2ddc1704.baa19"]]},{"id":"dbb8e1ed.7f0e58","type":"ui_slider","z":"5a5e0776.30c7b4","name":"","label":"Slider","tooltip":"","group":"23d3e331.b3cf3","order":4,"width":4,"height":1,"passthru":true,"outs":"end","topic":"","min":0,"max":10,"step":1,"x":330,"y":260,"wires":[["2ddc1704.baa19"]]},{"id":"2ddc1704.baa19","type":"debug","z":"5a5e0776.30c7b4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":550,"y":160,"wires":[]},{"id":"23d3e331.b3cf3","type":"ui_group","name":"Controls","tab":"a9f1a261.231458","order":2,"disp":true,"width":8,"collapse":false},{"id":"a9f1a261.231458","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]