-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Network: detect click on edge's label? #824
Comments
Hi, No, we do not take the label into account when checking for clicks. Regards |
Hi, I've added this to the feature requests: We cannot say when this feature will be implemented at this time. We try to collect all feature requests on our website and close the issues. This does not mean we will ignore this request. More information on this policy can be found here: http://visjs.org/blog.html#New\ website\ for\ vis.js! Regards, Alex |
Reopening as Feature-Request issue (see #2114). |
Keeping this open, there appears to be more interest for this (e.g. #3261). |
Could this be broadened to include a click event on node labels as well (where node labels are outside of the nodes), or should I log a separate feature request? I would like to be able to make the behavior of a node click also happen when someone clicks the node label under it. Thanks! |
@karenhansen I'm looking at it right now and yes, I'll take any label into account, irrespective of their positioning to the parent node/edge. This falls under the current issue, so don't bother with a new one. I'm actually taking it a bit further than that, because in the future, due to known pending requests, I expect there to be:
It's not that these will be implemented right away, but I'd like the label click event to be ready for them. |
Got it working. Need to do documentation as well before submitting. And clean up of course. |
Currently I can detect click on whole edge if
prop.edges.length === 1 && !prop.nodes.length
, but is it possible detect clicked on edge's label?The text was updated successfully, but these errors were encountered: