Switch Widget

The Switch widget is used to switch between two different values on a datapoint.

Figure 1. Switch Widget

Settings

The Switch Widget can have the custom appearance settings of custom title, colors and controls.

Content

The Slider Widget is connected to a singular datapoint, whose value can be set. Two values are defined, Value Off and Value On. If the current datapoint value is not one of these determined values, the slider position is set to the indeterminate position.

Formatting

For each of the Text off, Text indeterminate and Text On a corresponding tile can be set in all project languages.

Supported Datatypes

Datatype Supported
int
uint
float
long
ulong
string
char
bool

Dashboard View Controls

Within the standard Dashboard View the slider can be moved between two values, which immediately sets the datapoint value via dpSet(). If this value can not be set for the datapoint an error message will be shown.