我有以下电网这里:添加工具栏到网格 - ExtJS的
Ext.define('AM.view.user.List', {
extend: 'Ext.grid.Panel',
alias: 'widget.userlist',
title: 'All Users',
store: 'Users',
initComponent: function() {
this.columns = [{
header: 'Name',
dataIndex: 'name',
flex: 4
}, {
header: 'User ID',
dataIndex: 'user_id',
flex: 1
}, {
header: 'Address',
dataIndex: 'address',
flex: 3
}, {
header: 'Age',
dataIndex: 'agee',
flex: 5
}];
this.callParent(arguments);
}
});
可以一个工具栏添加到该网格的底部或可它们只能被添加到面板?
另外,如何将正常的文本放在工具栏而不是按钮?
嘿感谢这伟大的工作。我会检查文档。 –
如何将工具栏按钮放置在左侧和右侧? –
在工具栏中的按钮配置之间添加{xtype:'tbfill'} – BigBadOwl