b70ef95ff6bbd193ecd37b4ead3c06cab2c2910b
[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     Roo.bootstrap.Body.superclass.constructor.call(this, config);
20     this.el = Roo.get(document.body);
21     if (this.cls && this.cls.length) {
22         Roo.get(document.body).addClass(this.cls);
23     }
24 };
25
26 Roo.extend(Roo.bootstrap.Body, Roo.bootstrap.Component,  {
27     
28     is_body : true,// just to make sure it's constructed?
29     
30         autoCreate : {
31         cls: 'container'
32     },
33     onRender : function(ct, position)
34     {
35        /* Roo.log("Roo.bootstrap.Body - onRender");
36         if (this.cls && this.cls.length) {
37             Roo.get(document.body).addClass(this.cls);
38         }
39         // style??? xttr???
40         */
41     }
42     
43     
44  
45    
46 });
47
48