Pman.Tab.BuilderPalette.bjs
[Pman.Builder] / Pman.Tab.BuilderPalette.bjs
1 {
2     "id": "roo-file-34",
3     "name": "Pman.Tab.BuilderPalette",
4     "parent": "Pman.Tab.BuilderTab",
5     "title": "Pman.Tab.BuilderPalette",
6     "path": "/home/alan/gitlive/Pman.Builder/Pman.Tab.BuilderPalette.bjs",
7     "items": [
8         {
9             "listeners": {
10                 "|activate": "function() {\n    _this.panel = this;\n    if (_this.grid) {\n       _this.grid.ds.load({})\n    }\n}"
11             },
12             "background": true,
13             "fitContainer": true,
14             "fitToframe": true,
15             "region": "east",
16             "tableName": "palette",
17             "title": "palette",
18             "xtype": "GridPanel",
19             "|xns": "Roo",
20             "items": [
21                 {
22                     "listeners": {
23                         "|render": "function() \n{\n    _this.grid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n       this.ds.load({})\n    }\n}",
24                         "rowclass": "function (gridview, rowcfg)\n{\n    var sn = Pman.Tab.BuilderTree.tree.selNodeType();\n    if (!sn) {\n        sn = '*top';\n    }\n    var cls = 'pman-builder-palete-hide';\n    var name  = rowconfig.record.data.name;\n    Roo.each(rowconfig.record.data.parents, function(n) {\n        if (n == name || n.split(':').shift() == name) \n            cls = '';\n            return true;\n        }\n     );\n    // what is the currently selected element..\n \n}"
25                     },
26                     "*prop": "grid",
27                     "autoExpandColumn": "name",
28                     "loadMask": true,
29                     "xtype": "Grid",
30                     "|xns": "Roo.grid",
31                     "items": [
32                         {
33                             "*prop": "dataSource",
34                             "xtype": "Store",
35                             "remoteSort": true,
36                             "|sortInfo": "{ field : 'name', direction: 'ASC' }",
37                             "|xns": "Roo.data",
38                             "items": [
39                                 {
40                                     "*prop": "proxy",
41                                     "method": "GET",
42                                     "xtype": "HttpProxy",
43                                     "|url": "baseURL + '/Builder/Palette.php'",
44                                     "|xns": "Roo.data"
45                                 },
46                                 {
47                                     "*prop": "reader",
48                                     "id": "id",
49                                     "root": "data",
50                                     "totalProperty": "total",
51                                     "xtype": "JsonReader",
52                                     "|fields": "[\n    \n    {\n        'name': 'name',\n        'type': 'string'\n    }\n]",
53                                     "|xns": "Roo.data"
54                                 }
55                             ]
56                         },
57                         {
58                             "xtype": "ColumnModel",
59                             "header": "Name",
60                             "width": 200,
61                             "dataIndex": "name",
62                             "|renderer": "function(v) { return String.format('{0}', v); }",
63                             "|xns": "Roo.grid",
64                             "*prop": "colModel[]"
65                         }
66                     ]
67                 }
68             ]
69         }
70     ],
71     "permname": "",
72     "modOrder": "001"
73 }