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 immdeately as the toggle position changes.
Available attributes:
Attribute
Type
Mandatory
Description
checked
Boolean
N
Specify if the toggle is enabled.
disabled
Boolean
N
Specify if the position of the toggle can be changed by the users.
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.
isLeftSideText
Boolean
N
If enabled, the text is located on the left from the toggle. If disabled, the text is located on the right from the toggle.