Pman.Dialog.CoreAutoSavePreview.bjs
[Pman.Core] / Pman.Dialog.CoreAutoSavePreview.bjs
1 {
2     "id": "roo-file-208",
3     "name": "Pman.Dialog.CoreAutoSavePreview",
4     "parent": "",
5     "title": "",
6     "path": "/home/edward/gitlive/Pman.Core/Pman.Dialog.CoreAutoSavePreview.bjs",
7     "items": [
8         {
9             "background": false,
10             "closable": false,
11             "collapsible": false,
12             "height": 500,
13             "modal": true,
14             "resizable": false,
15             "title": "Saved Version",
16             "width": 800,
17             "xtype": "LayoutDialog",
18             "|xns": "Roo",
19             "items": [
20                 {
21                     "*prop": "center",
22                     "xtype": "LayoutRegion",
23                     "|xns": "Roo"
24                 },
25                 {
26                     "*prop": "west",
27                     "split": true,
28                     "width": 200,
29                     "xtype": "LayoutRegion",
30                     "|xns": "Roo"
31                 },
32                 {
33                     "listeners": {
34                         "|activate": "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
35                     },
36                     "background": false,
37                     "fitContainer": true,
38                     "fitToframe": true,
39                     "region": "west",
40                     "tableName": "Images",
41                     "title": "Images",
42                     "xtype": "GridPanel",
43                     "|xns": "Roo",
44                     "items": [
45                         {
46                             "listeners": {
47                                 "|render": "function() \n{\n    _this.grid = this; \n    \n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}",
48                                 "|rowdblclick": "function (_self, rowIndex, e)\n{\n\n}\n"
49                             },
50                             "*prop": "grid",
51                             "autoExpandColumn": "filename",
52                             "loadMask": true,
53                             "xtype": "Grid",
54                             "|xns": "Roo.grid",
55                             "items": [
56                                 {
57                                     "listeners": {
58                                         "afterselectionchange": "function (_self)\n{\n    var selected = this.getSelected();\n    \n    if (!selected) {\n        _this.viewPanel.setContent(\"Nothing Selected\");\n        return;\n    }\n    Roo.log(selected);\n    _this.viewPanel.setContent(\"Data Selected\");\n}"
59                                     },
60                                     "*prop": "sm",
61                                     "singleSelect": true,
62                                     "xtype": "RowSelectionModel",
63                                     "|xns": "Roo.grid"
64                                 },
65                                 {
66                                     "*prop": "dataSource",
67                                     "xtype": "Store",
68                                     "remoteSort": true,
69                                     "|sortInfo": "{ field : 'filename', direction: 'ASC' }",
70                                     "|xns": "Roo.data",
71                                     "items": [
72                                         {
73                                             "*prop": "proxy",
74                                             "xtype": "HttpProxy",
75                                             "method": "GET",
76                                             "|url": "baseURL + '/Roo/Images.php'",
77                                             "|xns": "Roo.data"
78                                         },
79                                         {
80                                             "*prop": "reader",
81                                             "id": "id",
82                                             "root": "data",
83                                             "totalProperty": "total",
84                                             "xtype": "JsonReader",
85                                             "|fields": "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'event_when',\n        'type': 'string'\n    }\n]",
86                                             "|xns": "Roo.data"
87                                         }
88                                     ]
89                                 },
90                                 {
91                                     "*prop": "footer",
92                                     "displayInfo": false,
93                                     "pageSize": 25,
94                                     "xtype": "PagingToolbar",
95                                     "|xns": "Roo"
96                                 },
97                                 {
98                                     "*prop": "colModel[]",
99                                     "dataIndex": "event_when",
100                                     "header": "Date",
101                                     "width": 100,
102                                     "xtype": "ColumnModel",
103                                     "|renderer": "function(v) { return String.format('{0}', v ? v.format('Y-m-d H:i:s') : ''); }",
104                                     "|xns": "Roo.grid"
105                                 }
106                             ]
107                         }
108                     ]
109                 },
110                 {
111                     "listeners": {
112                         "render": "function (_self)\n{\n    _this.viewPanel = _self;\n}"
113                     },
114                     "background": false,
115                     "fitContainer": true,
116                     "fitToFrame": true,
117                     "region": "center",
118                     "xtype": "ContentPanel",
119                     "|xns": "Roo"
120                 },
121                 {
122                     "listeners": {
123                         "|click": "function() {\n    _this.dialog.hide();\n}"
124                     },
125                     "*prop": "buttons[]",
126                     "text": "Cancel",
127                     "xtype": "Button",
128                     "|xns": "Roo"
129                 },
130                 {
131                     "listeners": {
132                         "|click": "function() {\n    _this.dialog.hide();\n}"
133                     },
134                     "*prop": "buttons[]",
135                     "text": "OK",
136                     "xtype": "Button",
137                     "|xns": "Roo"
138                 }
139             ]
140         }
141     ],
142     "permname": "",
143     "modOrder": "001"
144 }