Hi everyone. I’m Júnio, the most recent intern working with the Onsen UI team. Following our last blog post we’ve been focusing on updating the binding for Vue2 in order to accomplish our established deadlines (and all your wildest dreams).
We are happy to announce that we have finally released its alpha version. Keep reading for details.
To start using the new release right away you can simply install the dependency in your project with
npm install vue-onsenui (you can also use Yarn) or integrate it manually from GitHub.
After that import it in your code with
import VueOnsen from 'vue-onsenui'; and then add the plugin to Vue through
Call for feedback
Taking the risk of boring you, before going through some of the new stuff on this version we’d like to summon a “call to arms” for you awesome Vue 2 developers. If you could take the release for a test drive and let us known of any issues, ideas you might have to improve it, thoughts on the API or simply a (hopefully positive) comment, we would greatly appreciate it.
Best way to do that is by directly chatting with us on our Gitter channel. Otherwise you can place a question on our Community Forum or on Stack Overflow with the onsen-ui tag. You can even open an issue on our GitHub repo (where you can also find the source code). Plenty of ways to share your thoughts, huh? :)
As we mentioned before (and well, because that’s generally the point of an alpha) we will probably be making some breaking changes before transitioning to beta so now is the perfect time to let us know.
Referring to the list on our previous blog post, at this point all components (except Lazy Repeat) are implemented. The components from the Onsen UI core were wrapped so that you can still use the regular API.
However, we wanted to provide a more tailored way of doing things. Hence we decided to reserve extra space in our API for Vue-specific capabilities that we thought would suit your needs. The connection of Vue-like syntax to our core components demanded some tweeking and workarounding here and there but in general we are pleased with the solutions we found.
One of them is the use of
v-ons-input. Due to the way in which Vue treats elements such as checkboxes or radio buttons internally, we came up with our own directive
v-ons-model to emulate the behaviour of the regular
v-model. Same for
v-ons-index in Carousel or Tabbar, for example.
For these and other implementation details we are preparing some timely documentation that will come in handy if you have doubts. It will be up on Onsen UI’s website hopefully within the next few days.
Alpha version is out and can be installed via NPM or Yarn (source code on our GitHub repo);
Stay tuned and let’s make Vue-OnsenUI great again.
Onsen UI is an open source library used to create the user interface of hybrid apps. You can find more information on our GitHub page. If you like Onsen UI, please don’t forget to give us a star! ★★★★★