View Full Version : [Suggestion] Tab hiding
AlexJG
6 Apr 2007, 11:07 AM
It would be nice to have an option in the hideTab method to specify another tab to activate.
I found today that if you hide an active tab the tab header is hidden but the contents remain visible which means you need to do something like the following
this.tabs.hideTab('customers');
this.tabs.activate('status');
How about something like
hideTab : function(id,activateTab){
Where upon hiding 'id' the 'activateTab' would be activated
Regards
Alex
JeffHowden
6 Apr 2007, 9:48 PM
When you can simply call the activate() after hide(), I hardly see the point of adding it to the library, especially when it'd take more lines to do it in the library (gotta do the checks and stuff before activating one) than it would for you to do it.
AlexJG
7 Apr 2007, 1:58 AM
When you can simply call the activate() after hide(), I hardly see the point of adding it to the library, especially when it'd take more lines to do it in the library (gotta do the checks and stuff before activating one) than it would for you to do it.
Mainly for the reason I stated
if you hide an active tab the tab header is hidden but the contents remain visible.
Regards
Alex
suntoast
7 Apr 2007, 11:17 AM
I agree with Alex that leaving the content panel visible wasn't the behavior that I expected.
When you hide a browser tab in IE or Firefox, not only does the tab itself go away, but the content panel does too.
dnixon
27 Apr 2007, 1:01 PM
But there are legitimate UIs that want multiple switchable panels without tabs - if you are using another control to switch content in an area - say a tree selection for example. So there needs to be a way to have ContentPanels that have been added to BorderLayouts or TabPanels not to display tabs. hideTab() is it unless there's some TabPanel config option I've missed.
AlexJG
27 Apr 2007, 2:08 PM
But there are legitimate UIs that want multiple switchable panels without tabs - if you are using another control to switch content in an area - say a tree selection for example. So there needs to be a way to have ContentPanels that have been added to BorderLayouts or TabPanels not to display tabs. hideTab() is it unless there's some TabPanel config option I've missed.
Hiya
I think you are missing the point, or I have misread your post :">
My point was that for a set of visible tabs if any one od then is hidden then any content should also be hidden, this is normal behavour in most GUI's. This is not to be mistaken with activating a tab.
I think what you may be talking about is using a tree to display different content in another panel. I would have though that in your scenario you were talking about activating a tab rather than hiding it?
dnixon
27 Apr 2007, 4:05 PM
Let's distinguish between a tab meaning a panel with content that has a tab handle at the top or bottom, and the tab handle itself without the associated panel and content.
I want to create multiple panels in an area that do not have tab handles since I am using a tree in another section to the left to control which of my handle-less content pages is displayed.
I think I have to call myTabPanel.hideTab() to get rid of the handles.
So I need hideTab() to do what it does now, or have that capability elsewhere if it is changed.
Maybe there's a way to config tabs without handles but I haven't seen it yet - if there is point me to it.
Are you trying to switch tab panels A->B to hide A and show B (A's tab handle is still visible),
or really to hide A so all you see is B and no A handle?
Dave
tryanDLS
28 Apr 2007, 12:36 PM
I would look at how the tabPanel builds the tab strip (what you're calling handles). You may be able to hide this either thru code or CSS.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.