Selecting Edge

45 views
Skip to first unread message

trivar

unread,
Mar 30, 2012, 6:28:47 PM3/30/12
to JavaScript InfoVis Toolkit
Hello

I am trying hard to select edge on mouse click event but failed. I am
able to do it for nodes. I need it urgently please reply as soon as
possible.

Thanks

trivar

ragavanban

unread,
Mar 30, 2012, 7:55:47 PM3/30/12
to javascript-information...@googlegroups.com

onClick: function(elem, eventInfo, e) {
var edgeSelected = eventInfo.getEdge();
if(edgeSelected == true ){
/// your logic …….
}

> --
> You received this message because you are subscribed to the Google Groups "JavaScript InfoVis Toolkit" group.
> To post to this group, send email to javascript-information...@googlegroups.com.
> To unsubscribe from this group, send email to javascript-information-visua...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/javascript-information-visualization-toolkit?hl=en.
>

trivar

unread,
Mar 31, 2012, 12:16:59 AM3/31/12
to JavaScript InfoVis Toolkit
Does this work even for RGraph?
Here is my code snippet and this is not working

onClick: function(elem, eventInfo, e) {
var edgeSelected = eventInfo.getEdge();
if(edgeSelected == true ){
$jit.id('inner-details').innerHTML = "Mazzaa aa gaya ";
return;
}
},
},
> > For more options, visit this group athttp://groups.google.com/group/javascript-information-visualization-t....
Reply all
Reply to author
Forward
0 new messages