major doc changes
[roojs1] / Roo / bootstrap / TableBody.js
1 /*
2  * - LGPL
3  *
4  * table body
5  * 
6  */
7
8 /**
9  * @class Roo.bootstrap.TableBody
10  * @extends Roo.bootstrap.Component
11  * @children Roo.bootstrap.TableRow
12  * @parent Roo.bootstrap.Table
13  * Bootstrap TableBody class
14  * @cfg {String} cls element class
15  * @cfg {String} tag element tag (thead|tbody|tfoot) default tbody
16  * @cfg {String} align Aligns the content inside the element
17  * @cfg {Number} charoff Sets the number of characters the content inside the element will be aligned from the character specified by the char attribute
18  * @cfg {String} valign Vertical aligns the content inside the <tbody> element
19  * 
20  * @constructor
21  * Create a new TableBody
22  * @param {Object} config The config object
23  */
24
25 Roo.bootstrap.TableBody = function(config){
26     Roo.bootstrap.TableBody.superclass.constructor.call(this, config);
27 };
28
29 Roo.extend(Roo.bootstrap.TableBody, Roo.bootstrap.Component,  {
30     
31     cls: false,
32     tag: false,
33     align: false,
34     charoff: false,
35     valign: false,
36     
37     getAutoCreate : function(){
38         var cfg = Roo.apply({}, Roo.bootstrap.TableBody.superclass.getAutoCreate.call(this));
39         
40         cfg = {
41             tag: 'tbody'
42         };
43             
44         if (this.cls) {
45             cfg.cls=this.cls
46         }
47         if(this.tag){
48             cfg.tag = this.tag;
49         }
50         
51         if(this.align){
52             cfg.align = this.align;
53         }
54         if(this.charoff){
55             cfg.charoff = this.charoff;
56         }
57         if(this.valign){
58             cfg.valign = this.valign;
59         }
60         
61         return cfg;
62     }
63     
64     
65 //    initEvents : function()
66 //    {
67 //        
68 //        if(!this.store){
69 //            return;
70 //        }
71 //        
72 //        this.store = Roo.factory(this.store, Roo.data);
73 //        this.store.on('load', this.onLoad, this);
74 //        
75 //        this.store.load();
76 //        
77 //    },
78 //    
79 //    onLoad: function () 
80 //    {   
81 //        this.fireEvent('load', this);
82 //    }
83 //    
84 //   
85 });
86
87  
88
89