Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Use the <checkbox> tag to add and configure the a checkbox field.

Available attributes:

AttributeTypeMandatoryDescription
classStringNSpecify the CSS class name defined in the CSS field of the widget.
isMandatoryBooleanNTo Set the value to true to make the field mandatory, set the attribute equal to true. The default value is false.
isVisibleBooleanNTo disable the tag, set the Set the value to false to disable the tag. The default value is true.
labelStringNDescribe the field content by giving it a title.
modelStringYSpecify this attribute to connect the client controller data object. When the model data changes, it is automatically transferred to the data of the client controller.
readOnlyBooleanNTo Set the value to true to make the field read-only, set the attribute equal to true. The default value is false.
styleStringN

Specify the display settings (size, font, color, and others) of the tag elements using the CSS syntax.

valueStringNSpecify Set the default value of the fieldto true to make the checkbox selected by default. The default value is false.

Example:

Code Block
languagexml
titlecheckbox
<checkbox model="data.active" label={data.activeLabelTitle} value="true"></checkbox>