Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit efe6b6e

Browse files
Merge pull request #982 from arduino/karlsoderby/widget-update-april-iotc
IoTC - Value Sel. + Dropdown Widget docs
2 parents f8a3863 + 4953a21 commit efe6b6e

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed
64.7 KB
Loading[フレーム]
53.3 KB
Loading[フレーム]

‎content/arduino-cloud/01.getting-started/06.dashboard-widgets/dashboard-widgets.md‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,3 +369,38 @@ The sticky note widget can be used to write important notes or to categorize you
369369

370370
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.
371371

372+
### Value Selector
373+
374+
![Value Selector](assets/widget-value-picker.png)
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+
![Value Dropdown](assets/widget-dropdown.png)
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`.
395+
396+
Example:
397+
398+
```arduino
399+
if(valueDropDown == 0){
400+
//if value matches, execute code
401+
}
402+
403+
if(valueDropDown == "string"){
404+
//if string matches, execute code
405+
}
406+
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /