Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
Disable Swipeable Tabbar for IOS only
-
Is possible disabling swipeable tabbar and also change animation to fade for IOS devices?
-
You can remove the swipeable attribute on ons-tabbar to disable swiping.
Unfortunately the fade animation is not available for the tabbar, only for the navigator.
-
Yes but I need to disable tabbar swiping only for IOS devices. Is that possible?
-
I think you’re going to need to do that in JavaScript then.
This should work:
ons.ready(() => { if (ons.platform.isIOS()) { document.querySelector('ons-tabbar').removeAttribute('swipeable'); } });