Skip to content
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

Custom Node Component #104

Closed
gidonkatten opened this issue Oct 16, 2020 · 1 comment
Closed

Custom Node Component #104

gidonkatten opened this issue Oct 16, 2020 · 1 comment

Comments

@gidonkatten
Copy link

I am new to VueJS so please forgive me if I am missing something obvious.

I was looking at the documentation for hardcore customization https://newcat.github.io/baklavajs/#/styling?id=hardcore-customization and was trying to implement a custom node in my own package. I am trying to extend the current node implementation https://github.com/newcat/baklavajs/blob/master/packages/baklavajs-plugin-renderer-vue/src/components/node/Node.vue.

I noticed that I could do CustomNode extends Components.Node and it does seem to work (as long as I cast CustomNode to any e.g. this.viewPlugin.components.node = CustomNode as any;) but I am not sure if this is what I should be doing since I had to cast it

Thanks in advance!

@newcat
Copy link
Owner

newcat commented Oct 19, 2020

Good point, fixed it in version 1.7.5. Thank you!

@newcat newcat closed this as completed Oct 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants