Use the <toggle> tag to add and configure the toggle selector. The toggle does not require additional confirmation, so any functions related to it will be called immediately as the toggle position changes.
Available attributes:
Attribute
Type
Mandatory
Description
checked
Boolean
N
Set the attribute equal to true to enable the toggle.
disabled
Boolean
N
This attribute defines if the position of the toggle can be changed by the users. True - the toggle is inactive, false - the users can change its position.
onChange
Function
N
The method called when the position of the toggle changes.
text
String
N
The text explaining the function of the toggle to the users. By default, it is located on the right from the toggle.
isLeftSideText
Boolean
N
If set to true, the text is located on the left from the toggle. If set to false, the text is located on the right from the toggle.
boldText
Boolean
N
Set the attribute equal to true to make the text of the toggle bold.