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

Compare with Current View Page History

« Previous Version 9 Next »

The <codemirror> tag adds a text field with the code formatting.

Available attributes:

AttributeTypeMandatoryDescription
classStringNSpecify the CSS class name defined in the CSS field of the widget.
isMandatoryBooleanNTo make the field mandatory, set the value to true. The default value is false.
isVisibleBooleanNTo disable the tag, set the value to false. The default value is true.
labelStringNDescribe the field content by giving it a title.
modelStringY

Specify 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.

readOnly

BooleanN

To make the field read-only, set the value 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.

value

StringN

Specify the default value for the field.

Example:

Codemirror
<codemirror model="data.mirror" label="Code Editor" isMandatory="true"></codemirror>


  • No labels