Results 1 to 3 of 3

Thread: Close Tab With A Function?

  1. #1
    Ext User
    Join Date
    Apr 2010
    Posts
    17

    Question Close Tab With A Function?

    Hi,

    I'm new with ExtJS (as you can see ) and I need to create a button "Quit" which will close the current tab (I don't want to destroy it). I don't even know what function has to be called to do that

    I've been looking on the forum, but I can't find an answer.

    Thanks!

  2. #2
    Sencha User
    Join Date
    Jan 2008
    Location
    Toronto, Canada
    Posts
    481

    Default

    Tabs in a TabPanel are just components in a Container. To remove a component from a container you need to call remove method of the Container (i.e. of your TabPanel).
    http://www.extjs.com/deploy/dev/docs...&member=remove

  3. #3
    Ext User
    Join Date
    Apr 2010
    Posts
    17

    Default

    Thanks a lot

Posting Permissions

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