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