Ionic2/Angular2 - 如何在视图/页面和选项卡之间滑动(左右)? [英] Ionic2/Angular2 - How to swipe (right and left) between views/pages and tabs?

查看:16
本文介绍了Ionic2/Angular2 - 如何在视图/页面和选项卡之间滑动(左右)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我愿意在标签/页面之间实现向右/向左滑动手势,就像这里的那样:

I am willing to implement a swipe right/left gesture between tabs/pages, like the one here:

https://camo.githubusercontent.com/90e2e5abbe8155744d579951b93a1260edef855e/687474703a2f2f692e696d6775722e636f6d2f7a6c66574461312e676966

也可通过此链接在 GitHub 上找到(适用于 iOS)

Also available on GitHub through this link (for iOS)

https://github.com/cwRichardKim/RKSwipeBetweenViewControllers

另一个例子,但那个是基于 Ionic1 制作的:

Another example, but that one was made based on Ionic1:

www.ionic-sarav.rhcloud.com/ionic/tabbedSlideBox/slidingTabsUsingRepeat.html

有人知道如何在 Ionic2/Angular2 中实现这一点吗?如果您可以分享一个想法,实现相同的步骤,那将非常有帮助!

Anyone knows how to achieve that in Ionic2/Angular2? If you can share even just an idea, steps to achieve the same, it'll be very helpful!

推荐答案

目前尚不支持在选项卡之间滑动,但 Ionic 2 将在未来某个时候支持.

Swiping between tabs is not supported yet but will be at some point in the future with Ionic 2.

查看我们的 Ionic 2 路线图.如您所见,它暂定为 beta-7,而 beta-6 上周刚刚发布.不过,这是暂定的.

Check out our roadmap for Ionic 2. As you can see, it is tentatively scheduled for beta-7, and beta-6 was just released last week. It is tentative, though.

https://docs.google.com/document/d/1Qlc5X2eJyOB0izkFlH7KJ5BmMi0MeXUZRHJHt3hS6Wo/edit?usp=sharing

这篇关于Ionic2/Angular2 - 如何在视图/页面和选项卡之间滑动(左右)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆