{
 "hidden": false,
 "children": [{
  "configs": {"itemId": "module"},
  "expanded": true,
  "children": [{
   "configs": {
    "layout": "fit",
    "itemId": "viewport1"
   },
   "expanded": true,
   "children": [{
    "configs": {
     "itemId": "grid1",
     "editable": "true",
     "multiSelect": "true"
    },
    "expanded": true,
    "children": [
     {
      "configs": {
       "itemId": "store",
       "autoLoad": "true",
       "url": "m?xwl=examples/crud/crud-db-access/basic-select-student"
      },
      "expanded": false,
      "children": [],
      "type": "store"
     },
     {
      "configs": {"itemId": "tbar"},
      "expanded": true,
      "children": [
       {
        "configs": {
         "itemId": "item1",
         "text": "test",
         "iconCls": "accept_icon"
        },
        "expanded": false,
        "children": [],
        "type": "item",
        "events": {"click": "Wb.requestAg({\
  params: {\
    datatable: [Wb.getModified(app.grid1)],\
    className: \"com.ag.demo.pojo.Student\",\
//     service: \"com.ag.demo.service.impl.StudentServiceImpl\",//可忽略\
    bean: \"ComBean\",\
    method: \"saveGridPlus\" //业务方法名 \
  },\
  success: function(resp) {\
    Wb.tip('保存成功');\
    app.grid1.store.load();\
  }\
});"}
       },
       {
        "configs": {
         "itemId": "item11",
         "text": "test",
         "iconCls": "record_add_icon"
        },
        "expanded": false,
        "children": [],
        "type": "item",
        "events": {"click": "Wb.add(app.grid1, [{S_ID:\"11\"}]);//多个选项"}
       },
       {
        "configs": {
         "itemId": "item12",
         "text": "test",
         "iconCls": "record_delete_icon"
        },
        "expanded": false,
        "children": [],
        "type": "item",
        "events": {"click": "var recs = app.grid1.getSelection();\
if (!recs.length) {\
  Wb.warn('请选择需要删除的记录。');\
  return;\
}\
Wb.confirm('确定要删除选择的 ' + recs.length + ' 条记录吗？', function(){\
    Wb.remove(app.grid1, recs);\
});"}
       }
      ],
      "type": "toolbar"
     },
     {
      "configs": {"itemId": "columns"},
      "expanded": true,
      "children": [
       {
        "configs": {
         "itemId": "rownumbererCol",
         "xtype": "rownumberer"
        },
        "expanded": false,
        "children": [],
        "type": "column"
       },
       {
        "configs": {
         "itemId": "S_IDCol",
         "dataIndex": "S_ID"
        },
        "expanded": false,
        "children": [],
        "type": "column"
       },
       {
        "configs": {
         "itemId": "NAMECol",
         "dataIndex": "NAME",
         "text": "NAME"
        },
        "expanded": true,
        "children": [{
         "configs": {"itemId": "editor"},
         "expanded": false,
         "children": [],
         "type": "text"
        }],
        "type": "column"
       },
       {
        "configs": {
         "itemId": "SEXCol",
         "dataIndex": "SEX",
         "text": "SEX"
        },
        "expanded": true,
        "children": [{
         "configs": {"itemId": "editor"},
         "expanded": false,
         "children": [],
         "type": "text"
        }],
        "type": "column"
       },
       {
        "configs": {
         "itemId": "AGECol",
         "dataIndex": "AGE",
         "text": "AGE"
        },
        "expanded": true,
        "children": [{
         "configs": {"itemId": "editor"},
         "expanded": false,
         "children": [],
         "type": "text"
        }],
        "type": "column"
       }
      ],
      "type": "array"
     }
    ],
    "type": "grid"
   }],
   "type": "viewport"
  }],
  "type": "module"
 }],
 "roles": {"demo": 1},
 "title": "基本可编辑表格mybatisPlus",
 "iconCls": "",
 "inframe": false,
 "pageLink": ""
}