1. #1
    Sencha User
    Join Date
    Nov 2013
    Posts
    8
    Vote Rating
    1
    axida is on a distinguished road

      0  

    Default when last tab is closed destroy the parent panel

    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
    415
    Vote Rating
    61
    burnnat is a jewel in the rough burnnat is a jewel in the rough burnnat is a jewel in the rough burnnat is a jewel in the rough

      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
    axida is on a distinguished road

      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!

Thread Participants: 1