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
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>
.
© 2024 OneMinuteCode. All rights reserved.