* @cfg {boolean} responsive Format condensed
* @cfg {Boolean} loadMask (true|false) default false
*
-
+ * @cfg {Roo.bootstrap.PagingToolbar} footer a paging toolbar
*
* @constructor
this.sm.xmodule = this.xmodule || false;
}
if (this.cm && typeof(this.cm.config) == 'undefined') {
- this.colModel = new Roo.bootstrap.Table.ColumnModel(this.cm);
+ this.colModel = new Roo.grid.ColumnModel(this.cm);
this.cm = this.colModel;
this.cm.xmodule = this.xmodule || false;
}
this.ds.xmodule = this.xmodule || false;
}
+ if (this.footer && this.store) {
+ this.footer.dataSource = this.ds;
+ this.footer = Roo.factory(this.footer);
+ }
};
Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component, {
// this.maskEl.show();
this.parent().el.setStyle('position', 'relative');
+ if (this.footer) {
+ this.footer.parentId = this.id;
+ this.footer.onRender(this.el.select('tfoot tr td').first(), null);
+ }
+
+
+ // mask should be using Roo.bootstrap.Mask...
var mark = {
tag: "div",
cn: [
{
tag: "div",
- style: "background-color:white;width:50%;margin:100 auto",
+ style: "background-color:white;width:50%;margin:100 auto; display:none",
cn: [
{
tag: "img",
}
]
}
- this.maskEl = Roo.DomHelper.append(this.parent().el, mark, true);
+ this.maskEl = Roo.DomHelper.append(document.body, mark, true);
var size = this.parent().el.getSize();
this.store.on('load', this.onLoad, this);
this.store.on('beforeload', this.onBeforeLoad, this);
- this.store.load();
+ // load should be trigger on render..
+ //this.store.load();
{
var footer = {
tag: 'tfoot',
- cn : []
+ cn : [
+ {
+ tag: 'tr',
+ cn : [
+ {
+ tag : 'td',
+ colspan : 1
+ }
+ ]
+ }
+ ]
};
return footer;