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
Specify if the toggle is enabled.
disabled
Boolean
Specify if the position of the toggle can be changed by the users.
onChange
Function
The method called when the position of the toggle changes.
text
String
The text explaining the function of the toggle to the users. It is located on the right from the toggle.