how to limit the number of connections on the Connector to the Node?

I want to make sure that only a certain number of connectors of a specific attribute can be connected to a single node.

Can I limit the number of connectors connected to a node? 

Or can you restrict connections only to connectors with certain shape properties?


I have already checked the Constraint property of node, but I have not found any constraints on the connection of the newly created Connector in Node Constraints.


1 Reply

BM Balasubramanian Manikandan Syncfusion Team March 7, 2023 02:07 PM UTC

Use ConnectionChange event to restrict the connectors from connecting to the nodes. Refer to the below-mentioned documentation and sample.


Documentation

https://ej2.syncfusion.com/vue/documentation/api/diagram#connectionchange


Attachment: ConnectionChange_6b6cbd62.zip

Loader.
Up arrow icon