1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    9
    Vote Rating
    0
    kirk is on a distinguished road

      0  

    Default Can i display a tab again after close it?

    Can i display a tab again after close it?


    I have serval tabs in a borderLayout window. These tabs can be closed to save tab space. Some times i want to display an already closed tab. Can these be done? With yui-ext.0.33-beta4, getElementById() return null, so it seems not possible.

    Any suggestion?
    Thanks for your help!

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    3
    tryanDLS is on a distinguished road

      0  

    Default


    1st, I'd suggest you get the RC3 codebase, so you don't fight bugs that may have been fixed.

    I haven't tried this, but it looks like the closeClicked function does a remove of the panel. You could override this to do a hidePanel instead, and then do a showPanel to bring it back. There's also an unHidePanel - it looks like show does a setActivePanel and unHidePanel does not - you may have to experiment with those.

Similar Threads

  1. Can't close nodes in TreePanel
    By mouglas in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 20 Feb 2007, 10:46 AM
  2. close a TabPanelItem
    By punitshah in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 25 Jan 2007, 12:10 AM
  3. ContentPanel Close Problem
    By griffiti93 in forum Community Discussion
    Replies: 5
    Last Post: 22 Nov 2006, 12:09 AM
  4. tab close
    By KuN in forum Ext 1.x: Help & Discussion
    Replies: 8
    Last Post: 30 Oct 2006, 12:01 PM

Thread Participants: 1