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