You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/arduino-cloud/01.getting-started/06.dashboard-widgets/dashboard-widgets.md
+35Lines changed: 35 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -369,3 +369,38 @@ The sticky note widget can be used to write important notes or to categorize you
369
369
370
370
The sticky note can **not** be linked with a variable, and is designed to keep notes only while using a dashboard. It does support the use of markdown, so that you can create titles, links, code blocks etc.
371
371
372
+
### Value Selector
373
+
374
+

375
+
376
+
The value selector widget can be used to switch between predetermined values through available buttons. Supported variable types are `int` and `String`.
377
+
378
+
Example:
379
+
380
+
```arduino
381
+
if(valueSelector == 0){
382
+
//if value matches, execute code
383
+
}
384
+
385
+
if(valueSelector == "string"){
386
+
//if string matches, execute code
387
+
}
388
+
```
389
+
390
+
### Value Dropdown
391
+
392
+

393
+
394
+
The value dropdown widget works similarly to **value selector**, and is be used to switch between predetermined values through a dropdown menu. Supported variable types are `int` and `String`.
0 commit comments