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  */
17
18 Roo.bootstrap.Body = function(config){
19     Roo.bootstrap.Body.superclass.constructor.call(this, config);
20     
21     this.addEvents({
22         // raw events
23         /**
24          * @event resize
25          * When window resize
26          * @param {Roo.EventObject} e
27          */
28         "resize" : true
29     });
30     
31     this.el = Roo.get(document.body);
32     if (this.cls && this.cls.length) {
33         Roo.get(document.body).addClass(this.cls);
34     }
35 };
36
37 Roo.extend(Roo.bootstrap.Body, Roo.bootstrap.Component,  {
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 });
56
57