0

OnFocus event for tabs?

Hi I'm using a TabPipe as an input for showing some data in a grid.

Instead of changing the data via the onTabSelect event I'd like to change it as the user scrolls through the options.

I've tried using onTabFocus instead of onTabSelect but this doesn't seem to work (and for that matter I can't find onTabSelect documented in the guide, its only used in the samples, is this an oversight?).

I also tried adding an event's hash to the array I pass into the tab creator like so:
CODE
	
getTabs: function(page) {
tabs = [];
for(var i = 0; i < $stubs.schedule.dummydays.length; i++) {
tabs.push({
label: $stubs.schedule.dummydays[i].dayTitle,
styles: {
width: 30,
},
events : {
onFocus: function() {
log('Hey got to this!');
}
},
shows: $stubs.schedule.dummydays[i].shows,
dayTitle: $stubs.schedule.dummydays[i].dayTitle
})
};
return tabs;
}


This also doesn't seem to work (nor does the style info, but I'm feeling like this control isn't very open to styling so I can live with that)

Is this possible?

Thanks for any insight.

- Mike

by
0 Replies

Recent Posts

in General - Yahoo! TV Widgets