You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

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:

AttributeTypeMandatoryDescription
checkedBooleanNSpecify if the toggle is enabled.
disabledBooleanNSpecify if the position of the toggle can be changed by the users.
onChangeFunctionNThe method called when the position of the toggle changes.
textStringNThe text explaining the function of the toggle to the users. By default, it is located on the right from the toggle.
isLeftSideTextBooleanNIf enabled, the text is located on the left from the toggle. If disabled, the text is located on the right from the toggle.
boldTextBooleanNSpecify if the text should be bold.

Example:

toggle
<toggle text={data.text} disabled="true"></toggle>


  • No labels