drawing connectors and nodes
hi,
here are two things I have to implement in my diagram.
1. Drawing Connectors only when mouse is over port
I want to draw a connection only when the mouse is above a node-port.
How can I archive this?
2. Preview available
Is there a way to create a preview of a connector/node when clicking a port so that the user simply clicks a node-port,selects the displaying preview-node and after that the preview disappears again and a real node/connection gets created.
Best Regards
Tobias
SIGN IN To post a reply.
3 Replies
AR
Aravind Ravi
Syncfusion Team
April 17, 2020 06:11 AM UTC
Hi Tobias,
Please find the response for queries in below table
|
I want to draw a connection only when the mouse is above a node-port.
How can I archive this?
|
To create connector from port set port constraints as “Draw”. So that when you mouse hover on port , port gets highlighted and able to create connection from port. Please find below code snippet for how to set port constraints.
| |
|
Is there a way to create a preview of a connector/node when clicking a port so that the user simply clicks a node-port,selects the displaying preview-node and after that the preview disappears again and a real node/connection gets created. |
Currently in diagram we does not have support to show preview of node / connector when click on port. In diagram when you click on port , “Clicked” event gets triggered.By using that event you can add new node / connector in diagram. Please find below code snippet for how to use clicked event.
|
We have attached a sample for your reference. Please find the sample in below link
TK
Tobias Koller
April 22, 2020 05:22 AM UTC
thank you. that helped me a lot :-)
Best regards
Tobias
AR
Aravind Ravi
Syncfusion Team
April 22, 2020 09:35 AM UTC
Hi Tobias,
Thanks for your update.
Regards
Aravind Ravi
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
TK Tobias Koller
- Apr 16, 2020 06:54 AM UTC
- Apr 22, 2020 09:35 AM UTC