Trying to receive a callback from clicks on node. Currently the example expands a parent node if you click on it to show the children nodes. I would like to be able to click on the child node and receive a call independent from the parent node clicks. But I would need to know which child node was clicked as well. How best would this be done?
Trying to receive a callback from clicks on node. Currently the example expands a
Share
Consider using the pointer-events css attribute on the parent elements:
and give the child nodes an on click function:
Not exactly sure if this is what you were asking, otherwise I’d suggest creating a jsfiddle to describe your intentions a little better