Using existing Vue components
See original GitHub issueI’ve read https://axellience.github.io/vue-gwt/advanced/integrating-with-js-components.html#using-js-components-in-java But still cannot figure it out how to use existing Vue components from vue-gwt 😦
I’m trying to use https://bootstrap-vue.js.org/ In my index.html I’ve loaded vue and bootstrap-vue like: https://bootstrap-vue.js.org/docs#browser Then in Java code I’m using VueGWT.initWithoutVueLib(); And trying to use some components in my components’ templates, like:
<b-button :variant="warning"></b-button>
Obviously I have to use JsComponent annotation to make it working, but I cannot figure it out, tried something like:
@JsComponent("bButton") // tried: Vue.bButton, b-button, Vue.b-button
@JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "Object")
public class BButton extends VueComponent {
}
Perhaps namespace or name in JsType should be something different, but I’m lost.
Issue Analytics
- State:
- Created 6 years ago
- Comments:27 (15 by maintainers)
Top Results From Across the Web
Adding Vue.js to an Existing Project | by Blunt Jackson | Medium
When creating our application, we instantiate a new Vue object, and, in this case we provide it with two keys: el tells vue...
Read more >Component Registration - Vue.js
There are two ways to register components: global and local. Global Registration #. We can make components available globally in the current Vue...
Read more >How-to Guide: Adding VueJS to Your Existing Project
VueJS is a light-weight framework for user interfaces. It can aid with refactoring view layers. Learn how to integrate VueJS into your apps....
Read more >Vue components in existing html pages - Stack Overflow
1 Answer 1 ... Sure you can use Vue as a widget for existing HTML pages to fill them with content or make...
Read more >Using Vue.js in an existing project - Packt Subscription
Using Vue.js in an existing project ... I can feel now that you have seen how easy is to bind the properties of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@adrienbaron Sure, will open in the morning, it’s deep night in my town.
@adrienbaron Thank you for vue-gwt and quick responses!