Button Widget

The Button widget is used to set a datapoint value to a specified value upon click.

Figure 1. Button Widget

Settings

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

Content

The Button Widget can have one datapoint assigned to it. The datapoint value will be set to the value set in the "Prompts" field when the button is clicked.

If this value can not be set for the datapoint an error message will be shown upon trying to set it.

Formatting

The Button Widget can display a custom text in all project languages and an icon. The button appearance style can be chosen from the following:
  • primary: setting the default blue color,
  • secondary: setting a more discrete grey color,
  • danger: setting a very noticeable red.

Other settings include setting one of three text sizes, an additional outline or setting no button background and outline.

Supported Datatypes

Datatype Supported
int
uint
float
long
ulong
bool

Dashboard View Controls

Within the standard Dashboard View the button can be clicked, which sets the datapoint value to the value specified in the settings via a dpSet().