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
19 * Create a new TableBody
20 * @param {Object} config The config object
23 Roo.bootstrap.TableBody = function(config){
24 Roo.bootstrap.TableBody.superclass.constructor.call(this, config);
27 Roo.extend(Roo.bootstrap.TableBody, Roo.bootstrap.Component, {
35 getAutoCreate : function(){
36 var cfg = Roo.apply({}, Roo.bootstrap.TableBody.superclass.getAutoCreate.call(this));
50 cfg.align = this.align;
53 cfg.charoff = this.charoff;
56 cfg.valign = this.valign;
62 initEvents : function()
69 this.store = Roo.factory(this.store, Roo.data);
70 this.store.on('load', this.onLoad, this);
81 this.fireEvent('load', this);
86 this.el.dom.innerHTML = '';