Hareeshchandera / jsplumb

Automatically exported from code.google.com/p/jsplumb
0 stars 0 forks source link

Drag & Drop Multiple Connections From Endpoint #163

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I am attempting to enable a particular behavior with creating connections by 
dragging from one endpoint to another to create a connection.  I would like to 
know if jsplumb supports this, and if so how to enable the behavior.

The scenario is this: 

Imagine I have a node A with an endpoint.  This endpoint isSource = true, 
maxConnections = -1 and dragAllowedWhenFull = true.

On the page I also have a node B with an endpoint and a node C with an 
endpoint.  In both of these cases isTarget = true.  

If I drag from A to B this will create a connection between them.  This works.  
However, after the connection between A and B appears, I can no longer drag 
from A.  

I would like to be able after this to drag from A to C, so that now the page 
has two connections: A to B and A to C.

Is there a way to prevent the draggability of A from being disabled after a 
connection is created by dragging from it?

Original issue reported on code.google.com by behol...@gmail.com on 6 Jan 2012 at 7:00

GoogleCodeExporter commented 8 years ago
yes jsPlumb does support this. you just have to set up properly
the key to create a variable so var endpoint1 = { anchor:" ", endpoint:[" "], 
isSource:true, isTarget:true,} then just ad the points by 
jsPlumb.addEndpoints(['id of the div goes her'],[varable1]); thats it basically 
but its all in the documentation. 

Original comment by j...@umbc.edu on 6 Jan 2012 at 9:16

GoogleCodeExporter commented 8 years ago
also make sure you've set the correct z-indices for everything.  i've seen 
people ask this question a few times when the problem they are having is that 
the canvas for the connection they just created is sitting on top of the 
endpoint.  there's a bunch of stuff about this in the documentation.

Original comment by simon.po...@gmail.com on 6 Jan 2012 at 11:47

GoogleCodeExporter commented 8 years ago
i'm gonna close this out.  there doesn't appear to be an issue for jsplumb.

Original comment by simon.po...@gmail.com on 8 Jan 2012 at 8:34

GoogleCodeExporter commented 8 years ago
Thanks!

Original comment by behol...@gmail.com on 10 Jan 2012 at 2:53

GoogleCodeExporter commented 8 years ago
Hi . 
Just wanted to know how did you establish conenction by using drag & drop using 
jsPlumb. i would be cery gratefull if you can share sample code.

Regards,
Milind

Original comment by milindpo...@gmail.com on 3 Jul 2014 at 5:50