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