Nativescript: Feature: TabView tabItemTap event

Created on 19 Jul 2018  路  10Comments  路  Source: NativeScript/NativeScript

Right now there is only a selectedIndexChanged event for TabView. It would be nice with a Tab selection event, so that we could implement custom behavior when the currently active Tab is tapped again.

Examples:

  • Double tap Tab to reset its history. This works now on iOS, but not on Android.
  • Double tap Tab to scroll it to top (Twitter does this).

Suggestion:
As discussed with @sebawita , a simple onTabTapped event, which would trigger with: currentTabIndex and newTabIndex, would do the job. Naming could be improved :)


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

enhancement feature good first issue hacktoberfest tab-view

Most helpful comment

@vchimev Any idea when this will be released?

All 10 comments

A follow up here.

After a discussion within the core team and as mentioned above, we would suggest exposing a tabItemTap event. It will raise before selectedIndexChanged and will allow developers to implement custom behavior.

@vchimev Any idea when this will be released?

is tabItemTap event implemented?

I'm also very interested to get this working.

Will this be a part of TabView re-design in version 6.0? #6967

I'm also interested in this being implemented. Any News ?

@AlexisWalravens as mentioned in new TabView re-design, it will be a part of version 6.1 (check the link in my previous comment)

I think this can now be closed as nativescript 6.1 released with tap event for new bottomNavigation component.

The feature is out saw it on the nativescript bottom navigation docs. Click here

Was this page helpful?
0 / 5 - 0 ratings