examples/bootstrap/ComboBox.js
[roojs1] / examples / bootstrap / ComboBox.js
1
2
3 Roo.example = Roo.example || {};
4
5 Roo.example.combobox = new Roo.XComponent({
6     part     :  ["layout","viewpanel"],
7     order    : '001-viewpanel',
8     region   : '',
9     parent   : '#bootstrap',
10     name     : "unnamed module",
11     disabled : false, 
12     permname : '', 
13     _tree : function()
14     {
15         
16         this.parent = {
17             el : new Roo.bootstrap.Body()
18         }
19         this.parent.el.layout = false;
20         this.parent.el.render(document.body);
21         
22         var _this = this;
23         var MODULE = this;
24         var baseURL = '/web.eventmanager/admin.php';
25         
26         return {
27             xtype: 'Body',
28             xns: Roo.bootstrap,
29             items : [
30                  {
31                     xtype: 'Container',
32                     xns: Roo.bootstrap,
33                     style :  'margin-top:50px', 
34                     items: [
35                             {
36                                 xtype: "Container",
37                                 xns: Roo.bootstrap,
38                                 items: [
39                                     {
40                                         xtype: "ComboBox",
41                                         xns: Roo.bootstrap,
42                                         width: 300
43                                     }
44                                 ]
45                             }
46                     ]
47                  }
48             ]
49         };
50     }
51 });