|
|
|
@ -13,7 +13,8 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
|
|
|
|
|
curr: 1, // 初始化当前页, pages为数字时可用,
|
|
|
|
|
count: 1, // 总行数
|
|
|
|
|
rowInfoObject: null, |
|
|
|
|
showRowCount: true |
|
|
|
|
showRowCount: true, |
|
|
|
|
showRowInfo: true, |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
_init: function () { |
|
|
|
@ -108,8 +109,6 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
|
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
showPager: true, |
|
|
|
|
|
|
|
|
|
_getPagerIconCls: function () { |
|
|
|
|
var o = this.options; |
|
|
|
|
switch (o.pagerDirection) { |
|
|
|
@ -172,6 +171,11 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
|
|
|
|
|
this.setPagerVisible(v > 1); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setShowRowInfo: function (b) { |
|
|
|
|
this.options.showRowInfo = b; |
|
|
|
|
this.rowCountObject.setVisible(b); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
|
this.pager.setValue(v); |
|
|
|
|
}, |
|
|
|
@ -205,17 +209,16 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
|
|
|
|
|
return this.pager.hasNext(); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
isShowPager: function () { |
|
|
|
|
return this.options.showRowInfo || this.options.pages > 1; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setPagerVisible: function (b) { |
|
|
|
|
this.editor.setVisible(b); |
|
|
|
|
this.allPages.setVisible(b); |
|
|
|
|
this.pager.setVisible(b); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setRowCountVisible: function (b) { |
|
|
|
|
this.rowCountObject.setVisible(b); |
|
|
|
|
this.showPager = b || this.options.pages > 1; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
populate: function () { |
|
|
|
|
this.pager.populate(); |
|
|
|
|
this.setPagerVisible(this.options.pages > 1); |
|
|
|
|