UNPKG

cronapp-framework-mobile-js

Version:
85 lines 2.19 kB
{ "name": "crn-dynamic-file", "text_pt_BR": "Envio de Arquivo Dinâmico", "text_en_US": "Dynamic File Upload", "image": "/node_modules/cronapp-framework-mobile-js/img/cron-icon/crn-dynamic-file.svg", "description": "Estrutura para armazenar arquivos na fonte de dados", "description_en_US": "Structure for storing file in data source", "category": [ "INPUTS", "FORMS" ], "wrapper": false, "templateURL": "src/main/mobileapp/www/node_modules/cronapp-framework-mobile-js/dist/components/templates/dynamicfile.template.html", "properties": { "id": { "order": 2 }, "class": { "order": 9999 }, "ng-model": { "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, "order": 1 } }, "childrenProperties": [ { "name": "file-info", "selector": "div[dynamic-file]", "type": "text", "order": 2 }, { "name": "max-file-size", "displayName_pt_BR": "Tamanho máximo do arquivo", "displayName_en_US": "Maximum file size", "selector": "div[dynamic-file]", "type": "text", "order": 1 }, { "name": "ng-required", "selector": "div[dynamic-file]", "type": "logic" }, { "name": "ng-click", "selector": "div[dynamic-file]", "type": "event" }, { "name": "on-tap", "selector": "div[dynamic-file]", "type": "event" }, { "name": "on-hold", "selector": "div.item", "type": "event" }, { "name": "on-drag", "selector": "div.item", "type": "event" }, { "name": "on-swipe", "selector": "div.item", "type": "event" } ], "styles": [ { "selector": "div#{id} .form-group", "text_pt_BR": "Campo Interno", "text_en_US": "Internal Field" }, { "selector": "div#{id} label", "text_pt_BR": "Título", "text_en_US": "Title" } ] }