miriamSeptember 25, 2017 at 2:09 am #8058
I have a Weighted Tree with 5 levels that unfolds horizontally:
Index -> Objetives -> Categories -> Indicators -> Variables
Outside the tree, I have the level titles as supporting text in a div. Is it possible to have the corresponding level displayed or folded when clicking on each title? Please note that these titles are external to the tree.
Thank you very much.vizulySeptember 25, 2017 at 7:52 am #8059
The WeightedTree has a function exposed named toggleNode(d), which takes in the node in question and toggles it open or closed depending on its current state.
What you could do is keep track of all Level N nodes that correspond to your bread crumb title path and when a user clicks on a certain level call the toggleNode() function to open each corresponding node. You can tell if a node is open or closed by whether it has a d.children property (open nodes have d.children and closed nodes have d._children.)
I hope that points you in the right direction.
You must be logged in to reply to this topic.