PDA

View Full Version : [CLOSED] getTabBar().removeAll() does not work



axxerion
11 Aug 2010, 2:03 AM
After executing...

Axx.views.MainScreen = Ext.extend(Ext.TabPanel, {
.....

myfunction: function(){
this.getTabBar().removeAll(false);
this.getTabBar().doLayout();
this.getTabBar().doComponentLayout();
...
}...


The tabs are still visible...

evant
11 Aug 2010, 2:27 AM
Why are you doing this, out of curiousity? If you remove the tab items surely you want the tabs to be removed as well?

axxerion
11 Aug 2010, 4:35 AM
Well, i have a login panel ... (one tab)... and 3 other panels (3 tabs) which will be added after login is ok... that is working ok.
But now, i have a logout function... so I want to remove my 3 panels (3 tabs) and display my login panel again...

Jamie Avins
11 Aug 2010, 9:45 AM
Wouldn't using them on a card layout be better? Also as tabpanel isn't really meant to be empty I don't see this as a bug.

axxerion
11 Aug 2010, 12:09 PM
Do you mean a card layout where the second card is a TabPanel ?

Jamie Avins
12 Aug 2010, 8:57 AM
Sure, if that's your main panel for interaction.