I tried a lot but was unable to find a solution. Please help me as I am struck on this issue for more than 1 day.
I have a `Syncfusion` application that has been developed using `Angular`, now I would like to convert that application into `Vuejs` so trying to convert it but I am facing lot of issue as I am unable to find the 1:1 mapping of the `ejsdiagram methods`.
In `Angular` I was using the following code and respective method:
```
<ej-diagram id="diagram" e-height="80vh" e-width="100%" e-nodeCollectionChange="nodeCollectionChange" e-connectorCollectionChange="connectorCollectionChange" e-connectorTargetChange="connectorTargetChange" e-connectorSourceChange="connectorSourceChange" e-textChange="textChange"></ej-diagram>
```
Now I am using something like this in `Vuejs`:
```
```
I would like to know the `Vuejs` equivalent function for "e-connectorCollectionChange", "e-connectorTargetChange", etc, I searched a lot but could not find any documentation or maybe I missed something. Can someone please guide me through this?
Basically, I want to have some sort of front-end where I am able to create the Node and Connectors as provided in the below attachment. Can you please help me with this issue?
|
<ejs-diagram style='display:block' ref="diagramObject" id="diagram" :width='width' :height='height' :nodes='nodes' :connectors='connectors' :getNodeDefaults='getNodeDefaults' :getConnectorDefaults='getConnectorDefaults' :collectionChange="collectionChange" :sourcePointChange="sourcePointChange" :targetPointChange="targetPointChange" :textEdit="textEdit">
</ejs-diagram> |
@Sivakumar
Thanks a lot for the response and for providing the reference. This is working as expected.
I have one doubt regarding the How can add Label to Connectors at the runtime after the creation of it? I would like to add 3 labels to all my created connectors.
Please find the sample code:
diagram.js:4331 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'id')
at Diagram.addLabels (diagram.js:4331)
Thanks a lot for all the help and support you guys provide. Just wanted to let you know I was able to figure out so please do not waste your time trying to analyze this question.
I was able to make it work after trying a lot of things, Providing the sample code for the same so it can be helpful for someone in:
@Gowtham
Thanks a lot for all the help and for being kind enough ask to for further assistance :) I do not have further queries at the moment on this topic so we can close this question.
But I will surely run into some issues in the coming days when I will be working on `ejs-diagram` so I will reach out to you guys again :) Thanks a lot again, have a great day and weekend ahead :)
Regards,
AB