Appearance
Toggle Button Widget
Overview
Toggle Button Widget includes its own configuration fields in the widget configuration flow.
Configuration Fields
- Alias
- Devices
- Selected Device Ids
- Title
- Control Mode
- Channel
- Key
- ON Label
- Off Label
- ON Value Text
- Off Value Text
- Compact
- Confirm Before Toggle
- Show Device Name
- Full Width
- Danger When Off
- Active Button Type
- Retries
- Retry Interval MS
- Loading Devices
- Loading Keys
- Global Keys
- Device ID
- Device Ids
- Telemetry Key
- Metric
- Telemetry Keys
- Next Control Mode
- ON Value
- Off Value
- Math
Defaults
- Alias — null
- Selected Device Ids — (config.deviceId ? [config.deviceId] : []
- Title — ""
- Channel — 1) || 1
- Key — config.telemetryKey || config.metric || ""
- ON Label — "ON"
- Off Label — "OFF"
- ON Value Text — 1
- Off Value Text — 0
- Show Device Name — true
- Full Width — true
- Retries — 0) || 0, 10
- Retry Interval MS — 1000) || 1000, 60000
Source
- File — ToggleButtonWidgetConfig.tsx
