PDA

View Full Version : Equivalent of Ext-JS 3 'hideTabStripItem'



newtoextjs4
28 Sep 2012, 2:49 PM
Apparently with Ext-JS 3, one was able to hide a tab by executing the following code:

Ext.getCmp('myTPanel').hideTabStripItem('disabledTab');

However, that does not work with Ext-JS 4.1. The only way that I was able to hide a tab was by using the following code:

Ext.getCmp('myTPanel').child('#disabledTab').tab.hide();

Is this an appropriate way to 'emulate' "hideTabStripItem?"

sword-it
29 Sep 2012, 1:06 AM
Hi newto,


See this thread -
http://www.sencha.com/forum/showthread.php?130935-hideTabStripItem-alternative-in-Ext-4