php7 fixes
[Pman.Builder] / Pman.Tab.BuilderPalette.bjs
1 {
2  "name" : "Pman.Tab.BuilderPalette",
3  "parent" : "Pman.Tab.BuilderTab",
4  "title" : "Pman.Tab.BuilderPalette",
5  "path" : "/home/alan/gitlive/Pman.Builder/Pman.Tab.BuilderPalette.bjs",
6  "permname" : "",
7  "modOrder" : "001",
8  "strings" : {
9   "5ca5a8d02077b7f6a0da48bda450f755" : "palette",
10   "49ee3087348e8d44e1feda1917443987" : "Name"
11  },
12  "items" : [
13   {
14    "listeners" : {
15     "|activate" : "function() {\n    _this.panel = this;\n    if (_this.grid) {\n       _this.grid.ds.load({})\n    }\n}"
16    },
17    "region" : "east",
18    "fitToframe" : true,
19    "background" : true,
20    "title" : "palette",
21    "xtype" : "GridPanel",
22    "fitContainer" : true,
23    "$ xns" : "Roo",
24    "tableName" : "palette",
25    "items" : [
26     {
27      "listeners" : {
28       "|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    if (_this.ss) {\n        return;\n    }\n    _this.ss =   Roo.util.CSS.createStyleSheet(\n        '.pman-builder-palete-hide { display: none; } ' + \"\\n\" \n    , Roo.id());\n            \n    \n    \n}",
29       "rowclass" : "function (gridview, rowcfg)\n{\n    var sn = Pman.Builder.Tree.currentNodeType();\n  //  Roo.log(rowcfg);\n    if (!sn) {\n        sn = '*top';\n    }\n    var cls = 'pman-builder-palete-hide';\n \n    Roo.each(rowcfg.record.json.parents, function(n) {\n        if (n == sn || n.split(':').shift() == sn) {\n            cls = '';\n            return true;\n        }\n     });\n     \n     //Roo.log(cls);\n     rowcfg.rowClass = cls;\n    // what is the currently selected element..\n \n}"
30      },
31      "autoExpandColumn" : "name",
32      "xtype" : "Grid",
33      "ddGroup" : "component",
34      "enableDrag" : true,
35      "loadMask" : true,
36      "$ xns" : "Roo.grid",
37      "* prop" : "grid",
38      "items" : [
39       {
40        "remoteSort" : true,
41        "xtype" : "Store",
42        "$ sortInfo" : "{ field : 'name', direction: 'ASC' }",
43        "$ xns" : "Roo.data",
44        "* prop" : "dataSource",
45        "items" : [
46         {
47          "$ url" : "baseURL + '/Builder/Palette.php'",
48          "method" : "GET",
49          "xtype" : "HttpProxy",
50          "$ xns" : "Roo.data",
51          "* prop" : "proxy"
52         },
53         {
54          "id" : "id",
55          "root" : "data",
56          "xtype" : "JsonReader",
57          "$ fields" : "[\n    \n    {\n        'name': 'name',\n        'type': 'string'\n    }\n]",
58          "$ xns" : "Roo.data",
59          "* prop" : "reader",
60          "totalProperty" : "total"
61         }
62        ]
63       },
64       {
65        "xtype" : "ColumnModel",
66        "width" : 200,
67        "header" : "Name",
68        "$ renderer" : "function(v) { return String.format('{0}', v); }",
69        "$ xns" : "Roo.grid",
70        "* prop" : "colModel[]",
71        "dataIndex" : "name"
72       },
73       {
74        "xtype" : "RowSelectionModel",
75        "singleSelect" : true,
76        "$ xns" : "Roo.grid",
77        "* prop" : "sm"
78       }
79      ]
80     }
81    ]
82   }
83  ]
84 }