bbf75a3f779b301085ffa5c1c96580f73b03d975
[roojs1] / examples / bootstrap / popover.js
1 //<script type="text/javascript">
2
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
4
5 Roo.namespace('Pman.Popover');
6
7 Pman.Popover.FileTest= function() {}
8 Roo.apply(Pman.Popover.FileTest.prototype, {
9
10  _strings : {
11   '897356954c2cd3d41b221e3f24f99bba' :"Key",
12   '689202409e48743b914713f96d93947c' :"Value",
13   '53290b1ff9190e3b40183b207b1fe818' :"File Details"
14  },
15
16  dialog : false,
17  callback:  false,
18
19  show : function(data, cb)
20  {
21   if (!this.dialog) {
22    this.create();
23   }
24
25   this.callback = cb;
26   this.data = data;
27   this.dialog.show(this.data._el);
28   if (this.form) {
29    this.form.reset();
30    this.form.setValues(data);
31    this.form.fireEvent('actioncomplete', this.form,  { type: 'setdata', data: data });
32   }
33
34  },
35
36  create : function()
37  {
38   var _this = this;
39   this.dialog = Roo.factory({
40     xtype : 'Popover',
41      placement : 'right',
42     xns : Roo.bootstrap,
43     '|xns' : 'Roo.bootstrap',
44     items  : [
45      {
46       xtype : 'Card',
47       header : _this._strings['53290b1ff9190e3b40183b207b1fe818'] /* File Details */,
48       xns : Roo.bootstrap,
49       '|xns' : 'Roo.bootstrap',
50       items  : [
51        {
52         xtype : 'Table',
53         xns : Roo.bootstrap,
54         '|xns' : 'Roo.bootstrap',
55         store : {
56          xtype : 'Store',
57          xns : Roo.data,
58          '|xns' : 'Roo.data',
59          proxy : {
60           xtype : 'HttpProxy',
61           url : rootURL + '/Roo/Files_keytypes',
62           xns : Roo.data,
63           '|xns' : 'Roo.data'
64          },
65          reader : {
66           xtype : 'JsonReader',
67           xns : Roo.data,
68           '|xns' : 'Roo.data'
69          }
70         },
71         cm : [
72          {
73           xtype : 'ColumnModel',
74           header : _this._strings['897356954c2cd3d41b221e3f24f99bba'] /* Key */,
75           xns : Roo.grid,
76           '|xns' : 'Roo.grid'
77          },
78          {
79           xtype : 'ColumnModel',
80           header : _this._strings['689202409e48743b914713f96d93947c'] /* Value */,
81           xns : Roo.grid,
82           '|xns' : 'Roo.grid'
83          }
84         ]
85        }
86       ]
87      }
88     ]
89    }  );
90  }
91 });
92 Roo.apply(Pman.Popover.FileTest, Pman.Popover.FileTest.prototype);