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    //_this.dialog = Pman.Dialog.FILL_IN\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                                     "*prop": "dataSource",
58                                     "xtype": "Store",
59                                     "remoteSort": true,
60                                     "|sortInfo": "{ field : 'filename', direction: 'ASC' }",
61                                     "|xns": "Roo.data",
62                                     "items": [
63                                         {
64                                             "*prop": "proxy",
65                                             "xtype": "HttpProxy",
66                                             "method": "GET",
67                                             "|url": "baseURL + '/Roo/Images.php'",
68                                             "|xns": "Roo.data"
69                                         },
70                                         {
71                                             "*prop": "reader",
72                                             "id": "id",
73                                             "root": "data",
74                                             "totalProperty": "total",
75                                             "xtype": "JsonReader",
76                                             "|fields": "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'event_when',\n        'type': 'string'\n    }\n]",
77                                             "|xns": "Roo.data"
78                                         }
79                                     ]
80                                 },
81                                 {
82                                     "*prop": "footer",
83                                     "displayInfo": false,
84                                     "pageSize": 25,
85                                     "xtype": "PagingToolbar",
86                                     "|xns": "Roo"
87                                 },
88                                 {
89                                     "*prop": "colModel[]",
90                                     "dataIndex": "event_when",
91                                     "header": "Date",
92                                     "width": 100,
93                                     "xtype": "ColumnModel",
94                                     "|renderer": "function(v) { return String.format('{0}', v ? v.format('Y-m-d H:i:s') : ''); }",
95                                     "|xns": "Roo.grid"
96                                 }
97                             ]
98                         }
99                     ]
100                 },
101                 {
102                     "listeners": {
103                         "render": "function (_self)\n{\n    _this.viewPanel = _self;\n}"
104                     },
105                     "background": false,
106                     "fitContainer": true,
107                     "fitToFrame": true,
108                     "region": "center",
109                     "xtype": "ContentPanel",
110                     "|xns": "Roo"
111                 },
112                 {
113                     "listeners": {
114                         "|click": "function() {\n    _this.dialog.hide();\n}"
115                     },
116                     "*prop": "buttons[]",
117                     "text": "Cancel",
118                     "xtype": "Button",
119                     "|xns": "Roo"
120                 },
121                 {
122                     "listeners": {
123                         "|click": "function() {\n    _this.dialog.hide();\n}"
124                     },
125                     "*prop": "buttons[]",
126                     "text": "OK",
127                     "xtype": "Button",
128                     "|xns": "Roo"
129                 }
130             ]
131         }
132     ],
133     "permname": "",
134     "modOrder": "001"
135 }