widgets.pbRichTextarea.pbRichTextarea.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" : "pbRichTextarea",
"name" : "Rich text area",
"type" : "widget",
"custom" : false,
"modelVersion" : "2.6",
"description" : "Expendable text input field with HTML formatting, including style, image, links... This widget is based on textAngular.",
"template" : "@pbRichTextarea.tpl.html",
"controller" : "@pbRichTextarea.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",
"constraints" : {
"min" : "1"
}
},
{
"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",
"constraints" : {
"min" : "1"
}
},
{
"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" : "Variable content formatted in HTML",
"help" : "To pre-fill with a template, bind an HTML formatted variable",
"type" : "text",
"bond" : "variable"
},
{
"label" : "Style toolbar",
"name" : "toolbarsGrp1",
"caption" : "Available values: h1, h2, h3, h4, h5, h6, p, ul, ol",
"help" : "Subgroup of toolbar buttons to structure the text",
"type" : "collection",
"defaultValue" : [
"h1",
"h2",
"h3",
"h4",
"h5",
"h6",
"p",
"ul",
"ol"
],
"bond" : "expression"
},
{
"label" : "Formatting toolbar",
"name" : "toolbarsGrp2",
"caption" : "Available values: bold, italics, underline, strikeThrough, pre, quote",
"help" : "Subgroup of toolbar buttons to set how the text looks",
"type" : "collection",
"defaultValue" : [
"bold",
"italics",
"underline",
"strikeThrough",
"pre",
"quote"
],
"bond" : "expression"
},
{
"label" : "Alignment toolbar",
"name" : "toolbarsGrp3",
"caption" : "Available values: justifyLeft, justifyCenter, justifyRight, indent, outdent",
"help" : "Subgroup of toolbar buttons to arrange the text layout",
"type" : "collection",
"defaultValue" : [
"justifyLeft",
"justifyCenter",
"justifyRight",
"indent",
"outdent"
],
"bond" : "expression"
},
{
"label" : "Miscellaneous toolbar",
"name" : "toolbarsGrp4",
"caption" : "Available values: html, insertImage, insertLink, insertVideo, wordcount, charcount, undo, redo, clear",
"help" : "Subgroup of toolbar buttons for extra options",
"type" : "collection",
"defaultValue" : [
"html",
"insertImage",
"insertLink",
"insertVideo",
"wordcount",
"charcount",
"undo",
"redo",
"clear"
],
"bond" : "expression"
}
],
"assets" : [
{
"id" : "8c99fed5-977a-4f9d-b0d9-b4a18b98efd8",
"name" : "textAngular-sanitize-1.4.6.min.js",
"type" : "js",
"order" : 3,
"external" : false
},
{
"id" : "2f1e4386-ff5c-4469-9e46-4e4142623b41",
"name" : "textAngular.i18n.config.js",
"type" : "js",
"order" : 5,
"external" : false
},
{
"id" : "f6f678df-48b0-4c64-b1b1-f442bff56287",
"name" : "rangy-core.js",
"type" : "js",
"order" : 1,
"external" : false
},
{
"id" : "8ed3ff76-227b-4e8d-a964-aa41fd1a07bb",
"name" : "rangy-selectionsaverestore.js",
"type" : "js",
"order" : 2,
"external" : false
},
{
"id" : "0ba23a81-6c73-4787-8ffd-9fef280fe6f9",
"name" : "font-awesome-4.5.0.css",
"type" : "css",
"order" : 0,
"external" : false
},
{
"id" : "11088bf4-1f2d-40a5-93f6-7c1e6196d07b",
"name" : "textAngular-1.4.6.css",
"type" : "css",
"order" : 0,
"external" : false
},
{
"id" : "8e69eb96-0c4c-4b56-968a-962b4a3d4eee",
"name" : "textAngular-1.4.6.min.js",
"type" : "js",
"order" : 4,
"external" : false
}
],
"requiredModules" : [
"textAngular",
"textAngular-i18n"
],
"webResources" : [ ],
"icon" : "",
"order" : 3,
"hasHelp" : false
}