Sea*_*son 20
请阅读此处的文档:http://docs.sencha.com/ext-js/4-0/#!/api/Ext.tab.Panel
他们给出了如何隐藏标签的具体示例
从链接中提取:
var tabs = Ext.create('Ext.tab.Panel', {
width: 400,
height: 400,
renderTo: document.body,
items: [{
title: 'Home',
html: 'Home',
itemId: 'home'
}, {
title: 'Users',
html: 'Users',
itemId: 'users',
hidden: true
}, {
title: 'Tickets',
html: 'Tickets',
itemId: 'tickets'
}]
});
setTimeout(function () {
tabs.child('#home')
.tab.hide();
var users = tabs.child('#users');
users.tab.show();
tabs.setActiveTab(users);
}, 1000);
Run Code Online (Sandbox Code Playgroud)