-
-
Notifications
You must be signed in to change notification settings - Fork 38
Add support for Vue plugins #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
editor.use(VueRenderPlugin, {
options: {
// router, plugin, etc.
}
}); |
It is working great now, thank you! |
can you please point me out to a working example. I'm new to Vue and would like to use Retejs for a project. |
@Relatora do you want to integrate this into an existing project or create a new one? |
I'm creating a new project |
@Relatora For me its working now and I am using it like this: Define the store in e.g. ./store/index.ts.
And where ever you define the vuerenderplugin import it into Rete.js like this:
Hope this is of some help to you. |
Now all the components within retejs vue-render-plugin are rendered separately as their own vue instances. This disables the option to have a global Vuex store for example, maybe for now it can be imported per component, I don't know.
It would be useful in general to be able to globally define the Vue plugins in the options for example to use them over all components created throughout rete.
The text was updated successfully, but these errors were encountered: