UNPKG

cronapp-framework-js

Version:
85 lines 2.33 kB
{ "name": "crn-checkbox", "pallete": false, "text_pt_BR": "Caixa de checagem", "text_en_US": "Checkbox", "order": 0, "class": "adjust-icon mdi mdi-label-outline", "templateURL": "src/main/webapp/node_modules/cronapp-framework-js/dist/components/templates/checkbox.template.html", "styles": [ { "selector": "div#{id} .form-group input[type=checkbox]", "text_pt_BR": "Estilo Geral", "text_en_US": "General Style" }, { "selector": "div#{id} .form-group input[type=checkbox]:checked", "text_pt_BR": "Estilo Geral Checked", "text_en_US": "General Style Checked" } ], "properties": { "xattr-fullsize": { "displayName_pt_BR": "Largura", "displayName_en_US": "Width" } }, "attributesForPreview": [ { "name": "xattr-fullsize", "type": "options", "target": "style", "values": [ { "key": "display:block;", "value_pt_BR": "Bloco", "value_en_US": "Block" }, { "key": "display:inline;", "value_pt_BR": "Embutido", "value_en_US": "Inline" } ] } ], "childrenProperties": [ { "name": "content", "displayName_pt_BR": "Título", "displayName_en_US": "Title", "selector": "span", "type": "content" }, { "name": "ng-model", "selector": "input", "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 }, { "name": "crn-allow-null-values", "selector": "input", "displayName_pt_BR": "Permite Valores Nulos", "displayName_en_US": "Allow Null Values", "type": "logic", "mandatory": true }, { "name": "ng-false-value", "displayName_pt_BR": "Valor para falso", "displayName_en_US": "Value for false", "selector": "input", "type": "text" }, { "name": "ng-true-value", "displayName_pt_BR": "Valor para verdadeiro", "displayName_en_US": "Value for true", "selector": "input", "type": "text" } ] }