Skip to content

IoTC - Value Sel. + Dropdown Widget docs #982

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -369,3 +369,38 @@ The sticky note widget can be used to write important notes or to categorize you

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.

### Value Selector

![Value Selector](assets/widget-value-picker.png)

The value selector widget can be used to switch between predetermined values through available buttons. Supported variable types are `int` and `String`.

Example:

```arduino
if(valueSelector == 0){
//if value matches, execute code
}

if(valueSelector == "string"){
//if string matches, execute code
}
```

### Value Dropdown

![Value Dropdown](assets/widget-dropdown.png)

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`.

Example:

```arduino
if(valueDropDown == 0){
//if value matches, execute code
}

if(valueDropDown == "string"){
//if string matches, execute code
}
```