{
 "hidden": false,
 "children": [{
  "configs": {"itemId": "module"},
  "expanded": true,
  "children": [{
   "configs": {
    "layout": "fit",
    "itemId": "viewport1"
   },
   "expanded": true,
   "children": [{
    "configs": {
     "itemId": "grid1",
     "multiColumnSort": "true",
     "editable": "false",
     "multiSelect": "true"
    },
    "expanded": true,
    "children": [
     {
      "configs": {
       "itemId": "store",
       "autoLoad": "true",
       "url": "m?xwl=examples/crud/crud-db-access/simple-select"
      },
      "expanded": false,
      "children": [],
      "type": "store"
     },
     {
      "configs": {"itemId": "tbar"},
      "expanded": true,
      "children": [
       {
        "configs": {
         "itemId": "newBtn",
         "tooltip": "添加新的记录",
         "text": "添加",
         "iconCls": "record_add_icon"
        },
        "expanded": false,
        "children": [],
        "type": "item",
        "events": {"click": "Wb.addEdit(app.grid1);"}
       },
       {
        "configs": {
         "itemId": "delBtn",
         "tooltip": "删除选择的记录",
         "text": "删除",
         "iconCls": "record_delete_icon"
        },
        "expanded": false,
        "children": [],
        "type": "item",
        "events": {"click": "Wb.remove(app.grid1);"}
       },
       {
        "configs": {
         "itemId": "item1",
         "text": "-"
        },
        "expanded": false,
        "children": [],
        "type": "item"
       },
       {
        "configs": {
         "itemId": "saveBtn",
         "tooltip": "保存所有的更改",
         "text": "保存",
         "iconCls": "save_icon"
        },
        "expanded": false,
        "children": [],
        "type": "item",
        "events": {"click": "if (!Wb.verifyGrid(app.grid1))\
  return;\
Wb.sync({\
  grid: app.grid1,\
  url: 'm?xwl=examples/crud/crud-db-access/simple-save',\
  message: '正在保存中...',\
  success: function(resp) {\
    app.store.commitChanges(); //如果存在多个store可以设置normalName属性或通过app.grid.store方式找到对象\
    Wb.toast('已经成功保存数据。');\
  }\
});"}
       },
       {
        "configs": {
         "itemId": "text1",
         "fieldLabel": "aa"
        },
        "expanded": false,
        "children": [],
        "type": "text"
       }
      ],
      "type": "toolbar"
     }
    ],
    "type": "grid"
   }],
   "type": "viewport"
  }],
  "type": "module"
 }],
 "roles": {"demo": 1},
 "title": "简单编辑",
 "iconCls": "",
 "inframe": true,
 "pageLink": ""
}