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             xtype: 'Modal',
32             xns: Roo.bootstrap,
33             title : "Login",
34             buttons : Roo.bootstrap.Modal.OKCANCEL,
35             items : [
36                 {
37                     xtype: 'Row',
38                     xns: Roo.bootstrap,
39                     items : [
40                         {
41                             xtype: 'Container',
42                             xns: Roo.bootstrap,
43                             items : [
44                                 {
45                                     xtype: 'Button',
46                                     xns: Roo.bootstrap,
47                                     html : 'LinkedIn'
48                                 }
49                             ]
50                         }
51                     ]
52                 }
53             ]
54         };
55     }
56 });