0
我需要将水平滚动设置为ExtJS tbar,其中包含一行中不可见的按钮。以下是代码。extjs 4 - 在网格面板中将水平滚动设置为tbar
Ext.define('myProject.view.accounts.user.UserGrid', {
extend: 'Ext.grid.Panel',
alias: 'widget.usergrid',
minHeight: 400,
margin: '0,5,0,5',
title: 'User Accounts',
region: 'center',
cls: 'grid-with-footer',
scroll: 'vertical',
bind: {
...
},
initComponent: function() {
...
Ext.applyIf(me, {
columns: [{
...
}],
features: [{
...
}],
tbar: [{ // <-- this should be horizontally scrollable.
...
}],
bbar: {
...
}
});
this.callParent();
}
});
(我用的ExtJS 4.2.1)
请给些为你的问题提供解决] – Tejas