1953258238fab2aa41ff59fdd261357f4cd71dc0
[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      modal : true,
43      cls : 'p-0',
44     xns : Roo.bootstrap,
45     '|xns' : 'Roo.bootstrap',
46     items  : [
47      {
48       xtype : 'Card',
49       header : _this._strings['53290b1ff9190e3b40183b207b1fe818'] /* File Details */,
50       xns : Roo.bootstrap,
51       '|xns' : 'Roo.bootstrap',
52       items  : [
53        {
54         xtype : 'Table',
55         xns : Roo.bootstrap,
56         '|xns' : 'Roo.bootstrap',
57         store : {
58          xtype : 'Store',
59          xns : Roo.data,
60          '|xns' : 'Roo.data',
61          proxy : {
62           xtype : 'HttpProxy',
63           url : rootURL + '/Roo/Files_keytypes',
64           xns : Roo.data,
65           '|xns' : 'Roo.data'
66          },
67          reader : {
68           xtype : 'JsonReader',
69           xns : Roo.data,
70           '|xns' : 'Roo.data'
71          }
72         },
73         cm : [
74          {
75           xtype : 'ColumnModel',
76           header : _this._strings['897356954c2cd3d41b221e3f24f99bba'] /* Key */,
77           xns : Roo.grid,
78           '|xns' : 'Roo.grid'
79          },
80          {
81           xtype : 'ColumnModel',
82           header : _this._strings['689202409e48743b914713f96d93947c'] /* Value */,
83           xns : Roo.grid,
84           '|xns' : 'Roo.grid'
85          }
86         ]
87        }
88       ]
89      }
90     ]
91    }  );
92  }
93 });
94 Roo.apply(Pman.Popover.FileTest, Pman.Popover.FileTest.prototype);