blindbat
blindbat

Reputation: 87

Tab/TabGroup click event not firing when the tab is selected Ti SDK 5.2.0, Android SDK 23

I am trying to include a feature where when a tab is Home Tab is selected and user clicks on it again the Feed scrolls to top like Twitter. However bot Tab and Tab Group fire click event only when clicking on an unselected Tab. Once the Tab is selected for some reason the event is not fired. Any Solutions? Ti SDK 5.2.0 Android SDK 23

Upvotes: 0

Views: 463

Answers (1)

Saeed Sharman
Saeed Sharman

Reputation: 785

You can try adding listener with your tab and listen for click event. Ther are other events also that you can track. Documentation Link

tab.addEventListener('click', function(e) {

    Ti.API.log("Click Tab Detected");

});

Upvotes: 1

Related Questions