tbar : [{
id : 'newWindow',
text : '工具',
iconCls : 'add',
handler : function() {
showMemerAddWindow(); //显示表单所在窗体
}
}],
创建完成后可再新建一个toolbar:
tbar2 = new Ext.Toolbar({
renderTo : grid.tbar,//其中grid是上边创建的grid容器
items : ['第二行工具栏', '-', {
text : '查询',
iconCls : 'search'
}, '-']
});
转自一起Ext论坛:http://www.17ext.com/showtopic-1027.aspx
声明:本站教程文章版权为一起Ext(http://www.17ext.com/)所有,转载请注明出处