|
|
|
@ -12,6 +12,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
|
|
|
|
|
pages: 1, // 必选项
|
|
|
|
|
curr: 1, // 初始化当前页, pages为数字时可用,
|
|
|
|
|
count: 1, // 总行数
|
|
|
|
|
rowInfoObject: null, |
|
|
|
|
showRowCount: true |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
@ -137,7 +138,9 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
|
|
|
|
|
type: "bi.label", |
|
|
|
|
height: o.height, |
|
|
|
|
text: BI.i18nText("BI-Basic_Total"), |
|
|
|
|
width: 15 |
|
|
|
|
ref: function (_ref) { |
|
|
|
|
self.prevText = _ref; |
|
|
|
|
} |
|
|
|
|
}, { |
|
|
|
|
type: "bi.label", |
|
|
|
|
ref: function (_ref) { |
|
|
|
@ -152,9 +155,9 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
|
|
|
|
|
type: "bi.label", |
|
|
|
|
height: o.height, |
|
|
|
|
text: BI.i18nText("BI-Tiao_Data"), |
|
|
|
|
width: 50, |
|
|
|
|
width: 40, |
|
|
|
|
textAlign: "left" |
|
|
|
|
}] |
|
|
|
|
}, BI.isNotEmptyObject(o.rowInfoObject) ? o.rowInfoObject : null] |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -182,6 +185,12 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
|
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setCountPrevText: function (text) { |
|
|
|
|
if (this.options.showRowCount) { |
|
|
|
|
this.prevText.setText(text); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getCurrentPage: function () { |
|
|
|
|
return this.pager.getCurrentPage(); |
|
|
|
|
}, |
|
|
|
|