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