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": "Column",
37                                     "|xns": "Roo.bootstrap",
38                                     "md": "9",
39                                     "listeners": {},
40                                     "items": [
41                                         {
42                                             "xtype": "Container",
43                                             "|xns": "Roo.bootstrap",
44                                             "cls": "col-md-12",
45                                             "items": [
46                                                 {
47                                                     "xtype": "ComboBox",
48                                                     "|xns": "Roo.bootstrap",
49                                                     "cls": "roo-dynamic"
50                                                 }
51                                             ]
52                                         }
53                                     ]
54                                 }
55                  }
56                   
57             ]
58         };
59     }
60 });