cronapp-framework-mobile-js
Version:
Javascript library for CronApp's projects
110 lines • 2.9 kB
JSON
{
"name": "crn-multiselect",
"text_pt_BR": "Seleção múltipla",
"text_en_US": "Multiselect",
"image": "/node_modules/cronapp-framework-mobile-js/img/cron-icon/crn-multiselect.svg",
"description": "Caixa de seleção para selecionar mais de um item",
"description_en_US": "Checkbox to select more than one item",
"category": [
"INPUTS", "FORMS"
],
"wrapper": false,
"templateURL": "src/main/mobileapp/www/node_modules/cronapp-framework-mobile-js/dist/components/templates/multiselect.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": "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.',''); }",
"mandatory": true
},
{
"name": "xkey-field",
"selector": "select",
"displayName_pt_BR": "Campo Chave",
"displayName_en_US": "Key Field",
"type": "datasourceFieldList",
"mandatory": true,
"order": 2
},
{
"name": "xdisplay-field",
"selector": "select",
"displayName_pt_BR": "Campo Texto",
"displayName_en_US": "Display Field",
"type": "datasourceFieldList",
"mandatory": true,
"order": 3
},
{
"name": "content",
"selector": "span",
"displayName_pt_BR": "Título",
"displayName_en_US": "Title",
"type": "text",
"order": 4
}
],
"styles": [
{
"selector": "div#{id}",
"text_pt_BR": "Plano de fundo",
"text_en_US": "Background"
},
{
"selector": "div#{id} span",
"text_pt_BR": "Título",
"text_en_US": "Título"
},
{
"selector": "div#{id} .form-control",
"text_pt_BR": "Item selecionado",
"text_en_US": "Selected item"
}
]
}