ExtJs3: how to make closable tab of tabpanel not closable and back?
I want to be able to hide 'x' button near the tab title and to be able to show it back wit开发者_如何学JAVAhout a low level code manipulating DOM but using component level api functions if it is possible.
You should manually hide the close button in the DOM.
I tested this code over ExtJS 3 API page. It toggles close button on the second tab:
var tabPanel = Ext.getCmp('doc-body');
var tabHeader = tabPanel.items.get(1).tabEl;
Ext.get(tabHeader).down('a.x-tab-strip-close').toggleClass('x-hidden')
精彩评论