PDA

View Full Version : Adding tabs using a '+' button



jeroenooms
21 Jul 2009, 8:12 AM
I have a tabpanel with a variable number of tabs, similar to the 'advanced tabs (http://www.extjs.com/deploy/dev/examples/tabs/tabs-adv.html)' example. However, I find the 'add tabs' button very ugly. I would like the user to be able to add a tab like it is done in modern browsers: By clicking a '+' button that is next to the rightmost tab. Is this possible?

21 Jul 2009, 8:13 AM
out of the box, no. But, it sounds like a great opportunity to learn how to write a plugin :)

tryanDLS
21 Jul 2009, 8:16 AM
Nothing builtin, but it's do-able. The tabpanel already has functionality to add left/right arrows to scroll when the number of tabs gets large, so you should be able use that as a base.