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