3.2.0

tabs.onCurrentItemChanging = function(i)?

I am using AW.UI.Tabs. I need to trigger an action when the focus LEAVE from the tabs[0]. I tried as following:

tabs.onCurrentItemChanging = function(i){
if (i==0) alert("leaving tab 0?");
}

However, the event is triggered when the focus ENTER into the tab[0], instead of LEAVE from tab[0]. How can I get the parameter which reflact the "leaving" tabs item?

Do you have any onblur event handler?

Thanks,
mrhsh
May 12,
The onCurrentItemChanging event fires before the currentItem property changes the value. The index argument contains the new value, but the old one is still inside currentItem -

tabs.onCurrentItemChanging = function(i){
   if (this.getCurrentItem()==0) alert("leaving tab 0?");
}
Alex (ActiveWidgets)
May 13,

This topic is archived.

See also:


Back to support forum