Franklinjagan / jsplumb

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

Can we set zindex per connector? #73

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Version 1.2.6

can we set/override zindex via code per connector?

I am trying to set zinex as 

var con = jsPlumb.connect( ...);
var myId=con.getId().valueOf();
$('#'+myId).css("z-index", '1000');

whats wrong with my code?

Original issue reported on code.google.com by rkkil...@gmail.com on 13 Apr 2011 at 3:36

GoogleCodeExporter commented 9 years ago
"con" is an instance of Connection.  you need to set the z-index of con's 
"canvas" member:

var con = jsPlumb.connect(...);
$(con.canvas).css("z-index", 1000);

this isn't a defect or an enhancement.  marking invalid and closing.

Original comment by simon.po...@gmail.com on 13 Apr 2011 at 9:03

GoogleCodeExporter commented 9 years ago
thanks for the input. it works. 

I have one more query. How to get endpoint from node given a scope. Say 
jsPlumb.addEndpoint(nodeId,scope) should return all the endpoints attached to 
that nodeId with the given scope. If scope is not mentioned then all the 
endpoints irrespective of scope.
Is something available already? 

thanks in advance.

Original comment by rkkil...@gmail.com on 14 Apr 2011 at 5:59

GoogleCodeExporter commented 9 years ago
sorry for the typo above. Call should be jsPlumb.getEndpoint(nodeId,scope)

Original comment by rkkil...@gmail.com on 14 Apr 2011 at 6:00