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  * @cfg {DomElement} do_render - if this is set, then the constructor will try and initialize render, using this as the start point
17  
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     if (this.do_render) {
30         
31     }
32     
33 };
34
35 Roo.extend(Roo.bootstrap.Body, Roo.bootstrap.Component,  {
36
37     is_body : true,// just to make sure it's constructed?
38
39         autoCreate : {
40         cls: 'container'
41     },
42     onRender : function(ct, position)
43     {
44        /* Roo.log("Roo.bootstrap.Body - onRender");
45         if (this.cls && this.cls.length) {
46             Roo.get(document.body).addClass(this.cls);
47         }
48         // style??? xttr???
49         */
50     }
51
52
53
54
55 });