Skip to main content

Toggle

The Toggle control provides a binary selection interface, allowing users to switch between two mutually exclusive options or states. It typically showcases an ON/OFF or YES/NO functionality, offering a visual representation of toggling between the options.

Toggle Control
Toggle Control

Binding Data Options

The Toggle control can be bound to boolean data, representing a switch between two states: true or false.

Static Data Option

The Toggle control can display a predefined static state using the Bind Data option. You can utilize this feature to set an initial state for the toggle switch.

For example, you can represent an initial state as:

true

Properties

PropertyDescription
StyleConfigures the theme of the toggle control.

Control Outputs

The outputs from the Toggle control, represented by the placeholder {{toggle}}, can be referenced in other controls, data queries, or JavaScript functions using the control's unique name.

OutputDescription
toggleRepresents the binary state of the toggle.

Events

TriggerDescription
value_selectOccurs when there is a toggle the value of the respective control, from Yes to No or True to False.