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.
Just use parts of the framework
-
Hi,
I’ve come across Onsen and it looks really nice. I’m currently working on a hybrid app and have a question: Do I have to use the entire framework or can I just take the parts of the framework that I’m gonna use in my app?
Ex. if I’m just interested in buttons and navigation, would it then be possible to take these parts of the css?
Thanks in advance
Martin
-
Hi Martin,
If you’re using ES modules you can just import the components that you need. Take a look here to see how to do that: https://onsen.io/v2/guide/appsize.html#reducing-app-size
-
hi @emccorson, thanks a lot, much appreciate your help.