PDA

View Full Version : Close Tab With A Function?



Ebpo
12 Apr 2010, 10:35 AM
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 :D

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

Thanks!

elishnevsky
12 Apr 2010, 10:53 AM
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/?class=Ext.Container&member=remove

Ebpo
12 Apr 2010, 10:59 AM
Thanks a lot :)