UNPKG

cronapp-framework-js

Version:
59 lines (58 loc) 1.56 kB
{ "name": "crn-combobox", "pallete": false, "text_pt_BR": "Caixa de seleção fixa", "text_en_US": "Fixed combobox", "image": "/node_modules/cronapp-framework-js/img/cron-icon/crn-combobox.svg", "order": 10, "templateURL": "src/main/webapp/node_modules/cronapp-framework-js/dist/components/templates/combobox.template.html", "styles": [ { "selector": "div#{id} .crn-select .btn-default", "text_pt_BR": "Caixa de Seleção", "text_en_US": "Combobox" } ], "properties": { "onchange": { "removable": true, "type": "event" }, "ng-model": { "displayName_pt_BR": "Campo", "displayName_en_US": "Field", "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.',''); }", "type": "text", "mandatory": true } }, "handleRules": { "canToggle": true, "rules": [ { "toggleSelector": "ui-select-choices", "toggleClass": "invisible" } ] }, "childrenProperties": [ { "name": "crn-datasource", "selector": "ui-select", "displayName_pt_BR": "Items", "displayName_en_US": "Items" }, { "name": "ng-model", "selector": "ui-select", "type": "text", "mandatory": true }, { "name": "ng-required", "selector": "ui-select", "type": "logic" } ] }