Hareeshchandera / jsplumb

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

mouse drag at the end point #162

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Statically am doing all connection in jquery using jsplumb library. When drag 
the end point i want to create new div tag. which end point i dragged that 
endpoint should connect with newly created div tag... Plzzzzz help me how to do 
it...

Original issue reported on code.google.com by dhinadeb...@gmail.com on 4 Jan 2012 at 4:38

GoogleCodeExporter commented 8 years ago
hi,

you might want to look into providing a 'start' callback in the dragOptions to 
the endpoint.  in there you can create a div and set it as a target etc.

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

GoogleCodeExporter commented 8 years ago
Thanks for your reply ... i tried but am not able to create new element... Am 
able to drag from any endpoint but how to create new source point. If i drag 
endpoint i have create new div dynamically and it should connect with dragged 
one... Am really struct in it... Help Me how to do it ...
I did this..
http://jsfiddle.net/Dhinakar/zYqwQ/39/

Original comment by dhinadeb...@gmail.com on 6 Jan 2012 at 4:31

GoogleCodeExporter commented 8 years ago
do you mean something like this?

http://jsfiddle.net/zYqwQ/49/

start dragging from W1 and you'll see a new div with a red border appear, with 
'Foo' in it.  It has an endpoint added tp it, which will initially appear at 
the TopCenter of the element.  you can drag your connection on to it.

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

GoogleCodeExporter commented 8 years ago
Thanks once again ... same thing i need and not only create from w1. I have to 
create from each and every node... w2 connect newly create w6 and w6 connect 
newly create w9... something like that.. and i'll work  these thing and i have 
problem again i'll tell u... Once again thank youuuuuuuuuu.........

Original comment by dhinadeb...@gmail.com on 7 Jan 2012 at 2:00

GoogleCodeExporter commented 8 years ago
no problem. it's always interesting to see what people do with jsPlumb.  i'm 
gonna close this issue so it doesn't appear in my list but feel free to keep 
commenting if you need to.

Original comment by simon.po...@gmail.com on 7 Jan 2012 at 3:27