Switch
Palette: Form / HTML › Switch and Form / HTML › Toggle Button. Type in the page file: htmlswitch. 33 properties.
Toggle Button is the same object with Display Style set to Toggle button, so a switch can become a button and back. The signal, the write and the command checks are the same in both; see Use a Toggle Button.
Common groups: General, Position, Size, Transform, Animation, Shadow, Glow; see Common properties.
Data
| Property | Field | Values | Default | Bindable | Notes |
|---|---|---|---|---|---|
| Tag | tag | Signal | — | — |
Appearance
| Property | Field | Values | Default | Bindable | Notes |
|---|---|---|---|---|---|
| Light Color | onColor | Color | #22c55e | Yes | |
| Closed Color | offColor | Color | #d1d5db | Yes | |
| Display Style | display | Slide switch, Toggle button | Slide switch | — | |
| On Text | onText | Text | ON | Yes | Shown when Display Style is Toggle button |
| Off Text | offText | Text | OFF | Yes | Shown when Display Style is Toggle button |
| Font Size | fontSize | Number | 13 | Yes | Shown when Display Style is Toggle button |