Implementing UI like Smart News and Gunosy

Asked 1 years ago, Updated 1 years ago, 70 views

Thank you for your help.

For the first time using monaca, I am planning to create an app that switches tabs with smart news and left and right swipe like Gunosy.

I looked through the monaca and ONSEN UI manuals, but I couldn't find any function like swiping between tabs.

If possible, could you tell me the code?Or, if such a code is published, please let me know. (I searched, but I couldn't find it…)

I'm sorry to trouble you, but I appreciate your cooperation.

monaca onsen-ui

2022-09-30 19:23

1 Answers

You can use <ons-gesture-detector> to receive gestures such as swipe.

http://ja.onsen.io/guide/overview.html#DetectingFingerGestures

Once you receive the gesture, you can switch tabs by calling the setActiveTab() method in <ons-tabbar>.


2022-09-30 19:23

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.