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.
[ASK] Disable OnsenUI 2 Automatic styling
-
I dont know if it’s possible.
Can anyone help me to disable automatic styling in OnsenUI 2.
I wanna make my app always use the IOS style, no matter what OS the user use.
Do i have to customize the JS/CSS or maybe there’s some config to make this possible?Thanks for your response,
And sorry for my english.
-
@krizztianz Just place this at the top of your JS script block:
ons.disableAutoStyling();
-
Thanks @munsterlander it works!!!
:smiley: :smiley: :smiley:
-
Hello, I want to use the code for android, then as I do to disable the ios style?
-
@Pablo-Moralish Either you disable it normally and then set
modifier="material"
attribute manually for every element, or simply set Android platform withons.platform.select('android')
. Call that after includingonsenui.js
.