Closed MaleehaYasvi closed 2 years ago
it is vue 2 and yes, i am passing this in it
Provide more information to continue.
i have created a component ABC and i am calling that in drawflow.vue by using addNode() method. In ABC, i have a button and on its click, i want a modal to open. but it is not happening in ABC neither the tooltip is working
Can you show your component?
Are you using a third party library? In this case, how are you loading it?
It is resolved now. I added this while i register the node as well. this.editor.registerNode('NodeClasss', NodeClass, props, options, this);
Oh perfect!
I'm glad it worked out.
But the function only admits 4 arguments:
registerNode (name, html, props = null, options = null) {
...
}
Hi
Please try to provide as much information as possible.
Vue2? Vue3?
In case it is vue 2 it is passing the parent instance with "this".
Jero