widgets.pbTextarea.pbTextarea.json Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ui-designer-artifact-builder-generator-angularjs Show documentation
Show all versions of ui-designer-artifact-builder-generator-angularjs Show documentation
This module is a generator on AngularJS for Artifact Builder
{
"id" : "pbTextarea",
"name" : "Text Area",
"type" : "widget",
"custom" : false,
"modelVersion" : "2.6",
"description" : "Multi-line, expandable, text input field",
"template" : "@pbTextarea.tpl.html",
"controller" : "@pbTextarea.ctrl.js",
"properties" : [
{
"label" : "Read-only",
"name" : "readOnly",
"type" : "boolean",
"defaultValue" : false,
"bond" : "expression"
},
{
"label" : "Required",
"name" : "required",
"help" : "In the context of a form container, use $form.$invalid as a Boolean to check form validity in a widget property",
"type" : "boolean",
"defaultValue" : false,
"bond" : "expression"
},
{
"label" : "Interpret HTML",
"name" : "allowHTML",
"help" : "If you choose 'no', HTML code will be escaped instead of being interpreted. If you choose ‘Yes’, this could potentially lead to HTML injections attacks. Please take into account these risks.",
"type" : "boolean",
"defaultValue" : false,
"bond" : "constant"
},
{
"label" : "Value min length",
"name" : "minLength",
"help" : "In the context of a form container, use $form.$invalid as a Boolean to check form validity in a widget property",
"type" : "integer",
"defaultValue" : "",
"bond" : "expression"
},
{
"label" : "Value max length",
"name" : "maxLength",
"help" : "In the context of a form container, use $form.$invalid as a Boolean to check form validity in a widget property",
"type" : "integer",
"defaultValue" : "",
"bond" : "expression"
},
{
"label" : "Label hidden",
"name" : "labelHidden",
"type" : "boolean",
"defaultValue" : false,
"bond" : "constant"
},
{
"label" : "Label",
"name" : "label",
"showFor" : "properties.labelHidden.value === false",
"type" : "text",
"defaultValue" : "Default label",
"bond" : "interpolation"
},
{
"label" : "Label position",
"name" : "labelPosition",
"showFor" : "properties.labelHidden.value === false",
"type" : "choice",
"defaultValue" : "top",
"choiceValues" : [
"left",
"top"
],
"bond" : "constant"
},
{
"label" : "Label width",
"name" : "labelWidth",
"showFor" : "properties.labelHidden.value === false",
"type" : "integer",
"defaultValue" : 4,
"bond" : "constant",
"constraints" : {
"min" : "1",
"max" : "12"
}
},
{
"label" : "Value",
"name" : "value",
"caption" : "Any variable: myData or myData.attribute",
"help" : "Read-write binding, initialized or updated by users' input (bi-directional bond)",
"type" : "text",
"bond" : "variable"
}
],
"assets" : [ ],
"requiredModules" : [ ],
"webResources" : [ ],
"icon" : "",
"order" : 2,
"hasHelp" : false
}