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-modal',
13     region   : '',
14     parent   : '#bootstrap',
15     name     : "unnamed module",
16     disabled : false, 
17     permname : '', 
18     _tree : function()
19     {
20         this.parent = {
21             el : new Roo.bootstrap.Body()
22         }
23         this.parent.el.layout = false;
24         this.parent.el.render(document.body);
25         
26         var _this = this;
27         var MODULE = this;
28         var baseURL = '/web.eventmanager/admin.php';
29         
30         return {
31             id : 'test-modal',
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 });