Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Merged branch "DOC0000070" into parent

Use the <toggle> tag to add and configure the a toggle selector. The toggle does not require additional confirmation, so any functions related to it will be called immdeately as the toggle position changesposition is saved immediately after it is changed. Saving the record is not required.

Available attributes:

AttributeTypeMandatoryDescription
checkedBoolean
Specify if the toggle is enabled
NSet the value to true to select the toggle by default. The default value is false.
disabledBoolean
Specify if the position of the toggle can be changed by the users
NSet the value to true to disable the toggle for usersThe default value is false.
onChangeFunction
The method
NSpecify a function called when the position
of the toggle changes
is changed. Set the attribute value to the custom s_widget_custom method created in the client script.
textString
The text explaining the function
NSpecify the text that explains how the toggle works. 
isLeftSideTextBooleanNSet the value to true to position the text on the left of the toggle
to the users. It is located on the right from the toggle.
. The default value is false.
boldTextBooleanNSet the value to true to make the text of the toggle bold. The default value is false.

Example:

Code Block
languagexml
titletoggle
<toggle text="Active" checked="true" disabled="false"></toggle>

The template above adds a disabled toggle to the page: Image AddedExample: