The toggle element adds a toggle switch component to a project’s interface, and is used for binary selection (on or off).
The toggle element is located in the Element Toolbox within Studio’s Application View.
|Element Icon||Interface Component||Component Action|
The following properties can be changed for the toggle element:
The name of the element.
The state of the toggle on the interface: visible or hidden.
The default state of the toggle: off or on.
The following triggers are available to execute events from within the toggle element:
Execute an event when the source element connected to the toggle triggers.
Execute an event when the state of the toggle changes.
Execute an event when the toggle is switched on.
Execute an event when the toggle is switched off.
The following abilities are available for the toggle element when its source element triggers:
Trigger the element(s) that follow the toggle element.
Hide the toggle.
Display the toggle.
Set the toggle’s state: off or on.
|Set State Arguments|
|State||Boolean||The argument will be true or false.|
Set the toggle’s visibility: visible or hidden.
|Set Visible Arguments|
|Visible||Boolean||The argument will be true or false.|