question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature: TabView tabItemTap event

See original GitHub issue

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 😃

<bountysource-plugin>

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource. </bountysource-plugin>

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:7
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
logan-jobzmallcommented, Jan 25, 2019

@vchimev Any idea when this will be released?

3reactions
Mubashir-Mohamedcommented, Feb 27, 2019

is tabItemTap event implemented?

Read more comments on GitHub >

github_iconTop Results From Across the Web

SwiftUI TabView: how to detect click on a tab? - Stack Overflow
On the code below (by using onTapGesture ) when I tap on a new tab, myFunction is called, but the tabview is not...
Read more >
TabView | Apple Developer Documentation
A view that switches between multiple child views using interactive user interface elements.
Read more >
Working with the Tab View in SwiftUI - SerialCoder.dev
Learn how to create tab bar based applications in SwiftUI with the Tab view, how to deal with tab items, and other interesting...
Read more >
TabView Events in Xamarin Tabbed View control - Syncfusion
Whenever the TabItem is tapped, the TabItemTapped event will occur. Using this event, you can modify the selected Tab Item properties. XAML; C#....
Read more >
Xamarin Community Toolkit TabView - Microsoft Learn
The TabView control allows the user to display a set of tabs and their content. The TabView is fully customizable, other than the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found