widgets.pbAutocomplete.pbAutocomplete.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" : "pbAutocomplete",
"name" : "Autocomplete",
"type" : "widget",
"custom" : false,
"modelVersion" : "2.6",
"description" : "Input field with content completion from a given list",
"template" : "@pbAutocomplete.tpl.html",
"controller" : "@pbAutocomplete.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" : "Label hidden",
"name" : "labelHidden",
"type" : "boolean",
"defaultValue" : false,
"bond" : "constant"
},
{
"label" : "Label",
"name" : "label",
"showFor" : "properties.labelHidden.value === false",
"type" : "text",
"defaultValue" : "Default name",
"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" : "Placeholder",
"name" : "placeholder",
"help" : "Short hint that describes the expected value",
"type" : "text",
"bond" : "interpolation"
},
{
"label" : "Available values",
"name" : "availableValues",
"help" : "Can be a list of objects. Use 'Displayed key' to refine suggestions and 'Returned key' to refine selection",
"type" : "collection",
"defaultValue" : [
"London",
"Paris",
"San Francisco"
],
"bond" : "expression"
},
{
"label" : "Displayed key",
"name" : "displayedKey",
"help" : "Object key to display. Leave it empty for whole object",
"type" : "text",
"bond" : "expression"
},
{
"label" : "Returned key",
"name" : "returnedKey",
"help" : "The name of the key to use as value. Leave it empty for whole object",
"type" : "text",
"bond" : "expression"
},
{
"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"
},
{
"label" : "Debounce",
"name" : "debounce",
"help" : "Integer value which contains the debounce model update value in milliseconds. A value of 0 triggers an immediate update. Debounce value cannot be changed once initialized.",
"type" : "integer",
"defaultValue" : 0,
"bond" : "expression",
"constraints" : {
"min" : "0",
"step" : 100
}
}
],
"assets" : [
{
"id" : "f39f2b54-b282-4a63-9b0a-eabfc340caa3",
"name" : "ui-bootstrap-tpls-0.13.0.min.js",
"type" : "js",
"order" : 1,
"external" : false
},
{
"id" : "bc7af0534a60c8db2e89d0838bff20cc1424675f",
"name" : "style.css",
"type" : "css",
"order" : 0,
"external" : false
}
],
"requiredModules" : [
"ui.bootstrap.typeahead",
"ui.bootstrap.tpls"
],
"webResources" : [ ],
"icon" : "",
"order" : 4,
"hasHelp" : false
}