Button Widget
The Button widget is used to set a datapoint value to a specified value upon click.
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
- 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().
