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