roojs-ui.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  * @children Roo.bootstrap.Component 
12  * @parent none builder
13  * Bootstrap Body class
14  *
15  * @constructor
16  * Create a new body
17  * @param {Object} config The config object
18  */
19
20 Roo.bootstrap.Body = function(config){
21
22     config = config || {};
23
24     Roo.bootstrap.Body.superclass.constructor.call(this, config);
25     this.el = Roo.get(config.el ? config.el : document.body );
26     if (this.cls && this.cls.length) {
27         Roo.get(document.body).addClass(this.cls);
28     }
29 };
30
31 Roo.extend(Roo.bootstrap.Body, Roo.bootstrap.Component,  {
32
33     is_body : true,// just to make sure it's constructed?
34
35         autoCreate : {
36         cls: 'container'
37     },
38     onRender : function(ct, position)
39     {
40        /* Roo.log("Roo.bootstrap.Body - onRender");
41         if (this.cls && this.cls.length) {
42             Roo.get(document.body).addClass(this.cls);
43         }
44         // style??? xttr???
45         */
46     }
47
48
49
50
51 });