Version 2.3 introduced a new toggle widget that provides a simple and effective method to manage logical values, such as true and false, in the user interface. It is a UI component that allows you to easily switch between two states, offering intuitive control over various application settings or functions.
Widget usage
The widget works by changing the state from false to true (or vice versa) when the user clicks on it. Thanks to its simplicity and functionality, this widget allows users to quickly and easily choose between two states, without requiring additional interaction or complicated settings.
Toggle off and on
In the widget - toggle, we can set the initial value, that is, determine what state the toggle should have when the application is launched whether it should be enabled =true or disabled =false.
In addition, it is possible to adjust the height of the handle, which allows us to determine the appearance of the widget. The handle is the outer part of the button, which is moved when you click on the widget. In case you have a large one, the handle can be larger than the case.
Styles
Switch - allows us to define the color of the handle and casing, as well as add a border and round the edges. We can choose a style from the available list or define it using a formula.
Switch (on) - we can also specify the color of the handle and casing and choose a style from the available list or define it using a formula. The style of an enabled switch will be visible only if the widget has a value of true, that is, when the switch is enabled.
Disabled switch - we can specify its style by selecting one of the available list or by defining it with a formula. We can also set the color of the handle and housing ourselves.
To make the widget disabled from the beginning of the workflow, check the “Disable editing” option in its properties. You can also unlock it through the “Disable/enable editing” action step.
There is an icon next to each style property:
- reset the set style
- save the selected style
Style - Toggle
0 Comments