react-d3-tree icon indicating copy to clipboard operation
react-d3-tree copied to clipboard

is it possible to close all the other child node except the clicked ones?

Open gk108000 opened this issue 6 years ago • 2 comments

Thank you for taking the time to report an issue with react-d3-tree!

Feel free to delete any questions that do not apply.

Are you reporting a bug, or opening a feature request?

[Replace with your answer]

What is the actual behavior/output?

[Replace with your answer if relevant]

What is the behavior/output you expect?

[Replace with your answer if relevant]

Can you consistently reproduce the issue/create a reproduction case (e.g. on https://codesandbox.io)?

[Replace with your answer if relevant]

What version of react-d3-tree are you using?

[Replace with your answer]

If react-d3-tree crashed with a traceback, please paste the full traceback below.

[Replace with your traceback]

gk108000 avatar Jun 04 '20 10:06 gk108000

shouldCollapseNeighborNodes prop can help you achieve that

prateeksha-nf avatar Jun 15 '20 08:06 prateeksha-nf

Thanks for answering here already @prateeksha-nf 🙏

From what I understand shouldCollapseNeighborNodes should indeed do the trick for what you described :)

Closing as resolved.

bkrem avatar Jan 05 '21 19:01 bkrem