question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using existing Vue components

See original GitHub issue

I’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:closed
  • Created 6 years ago
  • Comments:27 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
slavapcommented, Dec 5, 2017

@adrienbaron Sure, will open in the morning, it’s deep night in my town.

1reaction
slavapcommented, Dec 1, 2017

@adrienbaron Thank you for vue-gwt and quick responses!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found