tabPanel tabbar添加按钮
this.tabPanel = Ext.create('Ext.tab.Panel', {
tabBar:{
items:[{
//组件靠右
xtype: 'tbfill'
},
//添加button 或者其他组件
{
html:"<div class ='x-tool-img x-tool-close'></div>",
cls:'my-btn',
closable: false,
handler:function(btn,e){
//do something
}
}]
},
items: [{
title: 'Mygrid',
xtype:'myGrid'
}, {
title: 'My Panel',
xtype:'myPanel'
}]
});
}