examples/bootstrap/modal.js
[roojs1] / examples / bootstrap / modal.js
1 /* 
2  * To change this template, choose Tools | Templates
3  * and open the template in the editor.
4  */
5
6
7
8 Roo.example = Roo.example || {};
9
10 Roo.example.modal = new Roo.XComponent({
11     part     :  ["layout","modal"],
12     order    : '001-viewpanel',
13     region   : '',
14     parent   : '#bootstrap',
15     name     : "unnamed module",
16     disabled : false, 
17     permname : '', 
18     _tree : function()
19     {
20         this.show();
21         this.parent = {
22             el : new Roo.bootstrap.Body()
23         }
24         this.parent.el.layout = false;
25         this.parent.el.render(document.body);
26         
27         var _this = this;
28         var MODULE = this;
29         var baseURL = '/web.eventmanager/admin.php';
30         
31         return {
32             xtype: 'Modal',
33             xns: Roo.bootstrap,
34             title : 'test',
35             items : [
36                  {
37                     xtype: 'Container',
38                     xns: Roo.bootstrap,
39                     html : 'hello world',
40                     style :  'margin-top:50px'
41                  }
42             ]
43         };
44     }
45 });