cronapp-framework-mobile-js
Version:
Javascript library for CronApp's projects
112 lines (111 loc) • 3 kB
JSON
{
"name": "crn-dynamic-select",
"text_pt_BR": "Caixa de seleção Dinâmica",
"text_en_US": "Dynamic Combobox",
"image": "/node_modules/cronapp-framework-mobile-js/img/cron-icon/crn-enterprise-dynamic-combobox.svg",
"description": "Campo de seleção com valores da fonte de dados",
"description_en_US": "Selection field with data source values",
"category": [
"INPUTS", "FORMS", "COMBOS"
],
"wrapper": false,
"templateURL": "src/main/mobileapp/www/node_modules/cronapp-framework-mobile-js/dist/components/templates/dynamic-combobox.template.html",
"properties": {
"id": {
"order": 1
},
"class": {
"order": 9999
},
"ng-click": {
"removable": false,
"type": "event"
},
"on-hold": {
"removable": false,
"type": "event"
},
"on-double-tap": {
"removable": false,
"type": "event"
},
"on-tap": {
"removable": false,
"type": "event"
},
"on-swipe": {
"removable": false,
"type": "event"
},
"on-drag": {
"removable": false,
"type": "event"
}
},
"childrenProperties": [
{
"name": "crn-datasource",
"selector": "select",
"displayName_pt_BR": "Fonte de dados",
"displayName_en_US": "Datasource",
"type": "pageDatasource",
"onDisplay": "javascript:function() { return arguments[0].replace('vars.',''); }",
"order": 1,
"mandatory": true
},
{
"name": "content",
"selector": "span",
"displayName_pt_BR": "Título",
"displayName_en_US": "Title",
"type": "text",
"order": 2
},
{
"name": "ng-model",
"selector": "select",
"displayName_pt_BR": "Valor",
"displayName_en_US": "Value",
"type": "allDatasourceFields",
"onSave": "javascript:function() {var result = arguments[0]; if (result.indexOf('.') == -1 && result.trim().length > 0 ) { result = 'vars.'+result; } return result; }",
"onDisplay": "javascript:function() { return arguments[0].replace('vars.',''); }",
"order": 3,
"mandatory": true
},
{
"name": "xkey-field",
"selector": "select",
"displayName_pt_BR": "Campo Chave",
"displayName_en_US": "Key Field",
"type": "datasourceFieldList",
"order": 4,
"mandatory": true
},
{
"name": "xdisplay-field",
"selector": "select",
"displayName_pt_BR": "Campo Texto",
"displayName_en_US": "Display Field",
"type": "datasourceFieldList",
"order": 5,
"mandatory": true
}
],
"styles": [
{
"selector": "div#{id}",
"text_pt_BR": "Plano de fundo do título",
"text_en_US": "Title background"
},
{
"selector": "div#{id} .input-label",
"text_pt_BR": "Título",
"text_en_US": "Title"
},
{
"selector": "div#{id} select",
"text_pt_BR": "Item selecionado/ Seta",
"text_en_US": "Selected Item/ Dropdown"
}
]
}