最佳答案
对于 tabpanel 组件遵循另一个建议:
Ext.application({
name : 'TabPanelHeaderButton',
launch : function() {
Ext.create('Ext.tab.Panel', {
width: 400,
height: 400,
renderTo: document.body,
items: [{
title: 'Foo'
},{
title: 'Foo 1'
}],
tabBar: {
items: [{
xtype: 'tbfill'
},{
xtype: 'button',
text: 'Button',
padding: '3px',
margin: '2px 5px 2px 2px',
handler: function(){
alert ('Button click')
}
}]
}
});
}
});
关于extjs - 在 extjs 的选项卡面板的标题中添加按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41821687/