UNPKG

cronapp-framework-mobile-js

Version:
184 lines 4.82 kB
{ "name": "crn-checkbox", "text_pt_BR": "Caixa de checagem", "text_en_US": "Checkbox", "image": "/node_modules/cronapp-framework-mobile-js/img/cron-icon/crn-checkbox.svg", "description": "Caixa de checagem quadrada com texto", "description_en_US": "Square checkbox with text", "category": [ "INPUTS", "FORMS" ], "wrapper": false, "templateURL": "src/main/mobileapp/www/node_modules/cronapp-framework-mobile-js/dist/components/templates/checkbox.template.html", "properties": { "class": { "order": 9999 }, "id": { "order": 1 }, "ng-click": { "removable": true, "type": "event" }, "on-tap": { "removable": true, "type": "event" }, "on-double-tap": { "removable": true, "type": "event" }, "on-hold": { "removable": true, "type": "event" }, "on-drag": { "removable": true, "type": "event" }, "on-swipe": { "removable": true, "type": "event" } }, "attributesForPreview": [ { "name": "xattr-theme", "type": "options", "target": "class", "values": [ { "key": "checkbox-assertive", "value_pt_BR": "Assertivo", "value_en_US": "Assertive", "color": "#ef473a" }, { "key": "checkbox-balanced", "value_pt_BR": "Equilibrado", "value_en_US": "Balanced", "color": "#33cd5f" }, { "key": "checkbox-energized", "value_pt_BR": "Energizado", "value_en_US": "Energized", "color": "#ffc900" }, { "key": "checkbox-light", "value_pt_BR": "Claro", "value_en_US": "Light", "color": "#fff" }, { "key": "checkbox-stable", "value_pt_BR": "Estável", "value_en_US": "Stable", "color": "#f8f8f8" }, { "key": "checkbox-calm", "value_pt_BR": "Calmo", "value_en_US": "Calm", "color": "#11c1f3" }, { "key": "checkbox-positive", "value_pt_BR": "Positivo", "value_en_US": "Positive", "color": "#387ef5" }, { "key": "checkbox-royal", "value_pt_BR": "Real", "value_en_US": "Royal", "color": "#886aea" }, { "key": "checkbox-dark", "value_pt_BR": "Sombrio", "value_en_US": "Dark", "color": "#444" } ] } ], "childrenProperties": [ { "name": "content", "selector": "span", "displayName_pt_BR": "Título", "displayName_en_US": "Title", "type": "text", "order": 1 }, { "name": "ng-model", "selector": "input", "type": "text", "order": 2, "mandatory": true }, { "name": "ng-initial-value", "selector": "input", "displayName_pt_BR": "Valor Inicial", "displayName_en_US": "Initial Value", "type": "logic", "order": 4 }, { "name": "xattr-theme", "selector": "li:first", "displayName_pt_BR": "Tema da caixa de checagem", "displayName_en_US": "Checkbox theme", "type": "options", "order": 3 }, { "name": "crn-allow-null-values", "selector": "input", "displayName_pt_BR": "Permite Valores Nulos", "displayName_en_US": "Allow Null Values", "type": "logic", "order": 5 }, { "name": "ng-required", "selector": "input", "type": "logic" }, { "name": "ng-false-value", "displayName_pt_BR": "Valor se falso", "displayName_en_US": "Value if false", "selector": "input", "onSave": "javascript:function() { var result = arguments[0]; if (result && result.indexOf('.') == -1 && result.trim().length > 0 ) { result = '\\''+result+'\\''; } return result; }", "onDisplay": "javascript:function() { return arguments[0].split('\\'').join('') }", "type": "text" }, { "name": "ng-true-value", "displayName_pt_BR": "Valor se verdadeiro", "displayName_en_US": "Value if true", "selector": "input", "onSave": "javascript:function() { var result = arguments[0]; if (result && result.indexOf('.') == -1 && result.trim().length > 0 ) { result = '\\''+result+'\\''; } return result; }", "onDisplay": "javascript:function() { return arguments[0].split('\\'').join('') }", "type": "text" } ], "styles": [ { "selector": "ul#{id} li", "text_pt_BR": "Plano de fundo", "text_en_US": "Background" }, { "selector": "ul#{id} li span", "text_pt_BR": "Título", "text_en_US": "Title" } ] }