Functional explanation
ToggleObject is a switch-style control for ON and OFF behavior. It is intended for boolean commands and status interaction.
Typical decorators include variable binding, ON and OFF text, ON and OFF colors, visibility, access control, and animation attributes. The control is easiest to read when the original aspect ratio is preserved.
Use ToggleObject when a switch metaphor is more intuitive than a push button. It is a good fit for enable, auto, or mode selection states.
Object name
Set the object name shown in the toggle decorator context.
| Setting | Description | Example | Units |
|---|---|---|---|
| Object Name | Name used to identify the Toggle object. | AutoModeToggle | Text |
No rows match the filter.
Variable
Configure the variable bound to the toggle state. A click writes Set when switching on and Reset when switching off, so the field holds one writable variable name. The Variable button opens the variable list and fills in the selected name.
| Setting | Description | Example | Units |
|---|---|---|---|
| Variable | Variable bound to the toggle state and written on click. | PLC1.AutoMode | Variable name |
No rows match the filter.
Settings
Configure the ON and OFF text, colors, and animation bindings for the toggle object.
| Setting | Description | Example | Units |
|---|---|---|---|
| ON Text | Text shown when the toggle is on. | ON | Text |
| OFF Text | Text shown when the toggle is off. | OFF | Text |
| ON Color | Color used when the toggle is on. | #198754 | Color |
| OFF Color | Color used when the toggle is off. | #6c757d | Color |
| ON Background Color | Background color used when the toggle is on. A gradient can be used here as well as a single color; see the Gradients section of the Color Library article. | #d1e7dd | Color |
| OFF Background Color | Background color used when the toggle is off. A gradient can be used here as well as a single color; see the Gradients section of the Color Library article. | #f8f9fa | Color |
| ON Border Color | Border color used when the toggle is on. | #198754 | Color |
| OFF Border Color | Border color used when the toggle is off. | #6c757d | Color |
| Font Family | Font family used for the toggle text. | Arial | Font family name |
| Font Size | Font size used for the toggle text. | 14 | px |
| Font Weight | Font weight used for the toggle text. | 400 | CSS font weight |
| Padding Left Text | Left padding applied to the toggle text. | 4 | px |
| Padding Right Text | Right padding applied to the toggle text. | 4 | px |
| Width Variable | Animation binding for width. | PLC1.ToggleWidth | Expression |
| Height Variable | Animation binding for height. | PLC1.ToggleHeight | Expression |
| Top Variable | Animation binding for top. | PLC1.ToggleTop | Expression |
| Left Variable | Animation binding for left. | PLC1.ToggleLeft | Expression |
No rows match the filter.
Position / Size
Configure the position and size of the Toggle object.
| Setting | Description | Example | Units |
|---|---|---|---|
| Top | Top position of the object. | 100 | px |
| Left | Left position of the object. | 220 | px |
| Width | Width of the object. | 48 | px |
| Height | Height of the object. | 24 | px |
| Z-index | Layer order of the object. Higher values appear in front of lower values. | 10 | Number |
No rows match the filter.
Access Control
Configure access control for the Toggle object.
| Setting | Description | Example | Units |
|---|---|---|---|
| Access Control Enable | Enables access control evaluation for the object. | true | Boolean |
| Access Control | Expression controlling who can use or see the object. | SYSTEM.UserGroups == "Operators" | Expression |
| Access Control Filter | CSS filter applied when access control is used to alter the object appearance. | blur(0px) contrast(30%) | CSS filter |
No rows match the filter.
Visibility
Configure the runtime visibility and blinking behavior for the Toggle object.
| Setting | Description | Example | Units |
|---|---|---|---|
| Visibility | Expression controlling whether the object is visible. | PLC1.ToggleVisible | Expression |
| Blink | Expression or boolean controlling toggle blinking. | PLC1.AlarmActive | Boolean or expression |
| Blink Speed | Blink speed used during runtime. | 500 | ms |
| Blink Offset | Blink offset used to stagger blinking between objects. | false | Boolean |
No rows match the filter.