PDA

View Full Version : YAHOO.ext.TabPanel methods



alexb
5 Oct 2006, 11:42 PM
Hi Jack,

it would be nice if TabPanel's methods were overloaded to accept tab index, so there is no need to store tab ids.


addTabItem : function(item){
this.items[item.id] = item;
this.items[this.items.length] = item;
},

....etc.


Thanks,
Alex

jack.slocum
6 Oct 2006, 12:45 AM
this.items is an Object so it doesn't have a length property. Changing it to an array could work though. I will fool around with it in a little bit and let you know.

Jack