diff --git a/content/arduino-cloud/01.getting-started/06.dashboard-widgets/assets/widget-dropdown.png b/content/arduino-cloud/01.getting-started/06.dashboard-widgets/assets/widget-dropdown.png new file mode 100644 index 0000000000..3e5d457471 Binary files /dev/null and b/content/arduino-cloud/01.getting-started/06.dashboard-widgets/assets/widget-dropdown.png differ diff --git a/content/arduino-cloud/01.getting-started/06.dashboard-widgets/assets/widget-value-picker.png b/content/arduino-cloud/01.getting-started/06.dashboard-widgets/assets/widget-value-picker.png new file mode 100644 index 0000000000..90b8b64ac9 Binary files /dev/null and b/content/arduino-cloud/01.getting-started/06.dashboard-widgets/assets/widget-value-picker.png differ diff --git a/content/arduino-cloud/01.getting-started/06.dashboard-widgets/dashboard-widgets.md b/content/arduino-cloud/01.getting-started/06.dashboard-widgets/dashboard-widgets.md index 6de2fb591d..ea9008538a 100644 --- a/content/arduino-cloud/01.getting-started/06.dashboard-widgets/dashboard-widgets.md +++ b/content/arduino-cloud/01.getting-started/06.dashboard-widgets/dashboard-widgets.md @@ -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 +} +```