如何在没有数据显示时禁用分页属性?当将鼠标移动到非活动状态时(即,当没有数据存在时),网格具有页面导航文本存在于网格底部。分页文本。当鼠标移动完成时显示超链接。
Adv.GridPagingBar = Ext.extend(Ext.PagingToolbar,
{
pageSize: 25,
height:40,
border:false,
displayInfo: true,
cls:'adv-pagination-bar',
displayMsg: 'Showing items {0} - {1} of {2}',
emptyMsg: "No items to display",
initComponent: function() {
this.items = [{
xtype: 'tbseparator'
}, {
xtype: 'tbspacer'
}, {
xtype: 'tbspacer'
}, {
xtype: 'tbspacer'
}];
Adv.GridPagingBar.superclass.initComponent.call(this, arguments);
}
});
后面跟各个属性如下;
this.next = new Ext.Toolbar.Button({
cls: 'adv-img-button',
iconCls: 'adv-btn-icon',
text:this.nextText,
tooltip: this.nextText,
overCls:'skip-funding-hover',
overflowText: this.nextText,
disabled: true,
handler: this.moveNext,
scope: this
}), this.last = new Ext.Toolbar.Button({
cls: 'adv-img-button',
iconCls: 'adv-btn-icon',
overCls:'skip-funding-hover',
text:this.lastText,
tooltip: this.lastText,
overflowText: this.lastText,
disabled: true,
handler: this.moveLast,
scope: this
})