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

Compare with Current View Page History

« Previous Version 4 Next »

The <multiselect> tag provides multiple-choice options for widgets.

Available attributes:

AttributeTypeMandatoryDescription
canExcludeAllBooleanNSet the attribute to true to make it possible to leave the field with no items selected.
classStringNSpecify the CSS class name defined in the CSS field of the widget.
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.
optionsArrayN

Specify the options available for selecting by using the CodeMirror JSON formatting.

You can put any number of options in the drop-down menu, but the vertical scrolling appears if there are more than 6 options.

readOnly

BooleanN

To make a field read-only, set the attribute equal to true.

styleStringN

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

valuesArrayNSpecify the values marked as selected by default.

Example:

multiselect
<multiselect model="data.values" canExcludeAll="true" values='["1", "2"]' options='[{"database_value":"1","display_value":"First"},{"database_value":"2","display_value":"Second"}]'></multiselect>


  • No labels