netjsongraph.js icon indicating copy to clipboard operation
netjsongraph.js copied to clipboard

Utilize callbacks for changing link CSS

Open coxley opened this issue 9 years ago • 2 comments

Hi!

I want, on click of a node, change the CSS properties of links that source == node.id. I see onClickNode but the arguments passed to that callback didn't seem possible to reference links originating from it. ([node object, node.index, 0])

Can you think of a way to accomplish this? I think it should be fairly simple to do, I just lack the exceptional JS comfort to know off-hand. :)

coxley avatar Feb 20 '16 11:02 coxley

I think it's not possible right now out of the box, it would be a good feature though.

nemesifier avatar Feb 20 '16 19:02 nemesifier

If you checkout the Network Map tab here, they do something similar to what I'm talking about.

coxley avatar Feb 21 '16 01:02 coxley