{
  "name": "crn-list",
  "text_pt_BR": "Lista Simples",
  "text_en_US": "Lista Simples",
  "image": "/node_modules/cronapp-framework-js/img/cron-icon/crn-list.svg",
  "description": "Lista com título e subtítulo alinhados na vertical",
  "description_en_US": "List with title and subtitle aligned vertically",
  "category": [
    "LISTS"
  ],
  "wrapper": false,
  "templateURL": "src/main/webapp/node_modules/cronapp-framework-js/dist/components/templates/list.template.html",
  "properties": {
    "crn-datasource": {
      "order": 1,
      "removable": false,
      "global": true,
      "type": "pageDatasource"
    }
  },
  "childrenProperties": [
    {
      "editExpression": false,
      "name": "ng-model",
      "selector": "div",
      "displayName_pt_BR": "Opção texto",
      "displayName_en_US": "Option text",
      "type": "datasourceFieldList",
      "onSave": "javascript:function() { var result = ''; var splited = arguments[0].split('+'); for (var i = 0; i<splited.length; i++) { if (splited[i].trim().startsWith(\"'\") || splited[i].trim().startsWith('\"')) result += splited[i].trim() + ' + '; else result += 'rowData.' + splited[i].trim() + ' + ';  } result = result.substr(0, result.length - 2); return '{{'+result.trim()+'}}'; }",
      "onDisplay": "javascript:function() { return arguments[0].replace(/rowData./g,'').replace('{{','').replace('}}','').replace(/\\$/g,''); }",
      "mandatory": true
    }
  ],
  "styles": [
    {
      "selector": "div#{id} h1",
      "text_pt_BR": "Título",
      "text_en_US": "Title"
    },
    {
      "selector": "div#{id} h3",
      "text_pt_BR": "Subtítulo",
      "text_en_US": "Subtitle"
    }
  ]
}