PDA

View Full Version : YAHOO.ext.TabPanel methods


alexb
10-06-2006, 03:42 AM
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
10-06-2006, 04: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