Results 1 to 3 of 3

Thread: when last tab is closed destroy the parent panel

  1. #1
    Sencha User
    Join Date
    Nov 2013
    Posts
    8
    Vote Rating
    1
      0  

    Default when last tab is closed destroy the parent panel

    How can do this:
    When last tab is closed, destroy the parent panel?
    Thank you in advance!

  2. #2
    Ext JS Premium Member burnnat's Avatar
    Join Date
    Jun 2011
    Posts
    418
    Vote Rating
    64
      1  

    Default

    Just use the remove event to listen for closed tabs, and if the parent is empty then destroy it. See an example fiddle here.

  3. #3
    Sencha User
    Join Date
    Nov 2013
    Posts
    8
    Vote Rating
    1
      1  

    Default

    Quote Originally Posted by burnnat View Post
    Just use the remove event to listen for closed tabs, and if the parent is empty then destroy it. See an example fiddle here.
    thank you very much!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •