Hareeshchandera / jsplumb

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

getEndpoint(s) by other means than 'uuid' #216

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi

I would like to make a request regarding the 'getEndpoint' function. Instead of 
this function only taking a specific 'uuid', it would be nice if I could pass 
e.g the 'targetId' or 'sourceId' and recieve ALL the endpoints as objects for 
this element. 

Maybe making a new function called 'getEndPoints()' that could take either a 
connection object, 'sourceId', 'targetId' or maybe even 'scope'. 

I can only seem to find a 'getConnection' and 'getAllConnections' in the API 
docs, and that unluckily does not help me a whole lot. Maybe I am missing 
something?

Best regards

Karsten Jakobsen

Original issue reported on code.google.com by Karsten....@gmail.com on 4 Mar 2012 at 5:17

GoogleCodeExporter commented 8 years ago
It seems that I found just what is was looking for. The command: 

'jsPlumb.getEndpoints(sourceId)' seems to do exactly what I want it to do.

Please close this request since it sort of solved itself. :)

Original comment by Karsten....@gmail.com on 4 Mar 2012 at 6:58

GoogleCodeExporter commented 8 years ago
getEndpoints does take element ids - not uuids.

Original comment by simon.po...@gmail.com on 4 Mar 2012 at 7:46

GoogleCodeExporter commented 8 years ago
oh i didn't see your second comment when i posted. and i also didn't notice 
that your first comment was about "getEndpoint". um.  well, it's good to see it 
sorted itself out despite all my flailing around!

Original comment by simon.po...@gmail.com on 5 Mar 2012 at 8:36