Roo/bootstrap/Body.js
[roojs1] / Roo / bootstrap / Body.js
1 /*
2  * - LGPL
3  *
4  * Body
5  * 
6  */
7
8 /**
9  * @class Roo.bootstrap.Body
10  * @extends Roo.bootstrap.Component
11  * Bootstrap Body class
12  * 
13  * @constructor
14  * Create a new body
15  * @param {Object} config The config object
16  */
17
18 Roo.bootstrap.Body = function(config)
19 {
20     //Roo.log(config);
21     Roo.bootstrap.Body.superclass.constructor.call(this, config);
22     this.el = Roo.get(document.body);
23     if (this.cls && this.cls.length) {
24         Roo.get(document.body).addClass(this.cls);
25     }
26     this.initEvents();
27     this.fireEvent('render',this);
28 };
29
30 Roo.extend(Roo.bootstrap.Body, Roo.bootstrap.Component,  {
31       
32         autoCreate : {
33         cls: 'container'
34     },
35     onRender : function(ct, position)
36     {
37        /* Roo.log("Roo.bootstrap.Body - onRender");
38         if (this.cls && this.cls.length) {
39             Roo.get(document.body).addClass(this.cls);
40         }
41         // style??? xttr???
42         */
43        //Roo.log("Roo.bootstrap.Body.onRender");
44         
45        
46     }
47     
48     
49  
50    
51 });
52
53