examples/bootstrap/popover.js
[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   '5a105e8b9d40e1329780d62ea2265d8a' :"test1"
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     modal : true,
42     placement : 'right',
43     style : 'width:500px',
44     xns : Roo.bootstrap,
45     '|xns' : 'Roo.bootstrap',
46     items  : [
47      {
48       xtype : 'Table',
49       width : 500,
50       xns : Roo.bootstrap,
51       '|xns' : 'Roo.bootstrap',
52       store : {
53        xtype : 'Store',
54        xns : Roo.data,
55        '|xns' : 'Roo.data',
56        proxy : {
57         xtype : 'HttpProxy',
58         url : rootURL + '/Roo/Files_keytypes',
59         xns : Roo.data,
60         '|xns' : 'Roo.data'
61        },
62        reader : {
63         xtype : 'JsonReader',
64         xns : Roo.data,
65         '|xns' : 'Roo.data'
66        }
67       },
68       cm : [
69        {
70         xtype : 'ColumnModel',
71         header : _this._strings['897356954c2cd3d41b221e3f24f99bba'] /* Key */,
72         xns : Roo.grid,
73         '|xns' : 'Roo.grid'
74        },
75        {
76         xtype : 'ColumnModel',
77         header : _this._strings['689202409e48743b914713f96d93947c'] /* Value */,
78         xns : Roo.grid,
79         '|xns' : 'Roo.grid'
80        }
81       ]
82      },
83      {
84       xtype : 'PopoverNav',
85       style : 'width:500px',
86       type : 'pills',
87       xns : Roo.bootstrap,
88       '|xns' : 'Roo.bootstrap',
89       items  : [
90        {
91         xtype : 'NavItem',
92         html : _this._strings['5a105e8b9d40e1329780d62ea2265d8a'] /* test1 */,
93         style : 'width:50%',
94         xns : Roo.bootstrap,
95         '|xns' : 'Roo.bootstrap'
96        },
97        {
98         xtype : 'NavItem',
99         button_weight : 'secondary',
100         html : _this._strings['5a105e8b9d40e1329780d62ea2265d8a'] /* test1 */,
101         xns : Roo.bootstrap,
102         '|xns' : 'Roo.bootstrap'
103        },
104        {
105         xtype : 'NavItem',
106         html : _this._strings['5a105e8b9d40e1329780d62ea2265d8a'] /* test1 */,
107         xns : Roo.bootstrap,
108         '|xns' : 'Roo.bootstrap'
109        }
110       ]
111      }
112     ]
113    }  );
114  }
115 });
116 Roo.apply(Pman.Popover.FileTest, Pman.Popover.FileTest.prototype);