hyper-tree icon indicating copy to clipboard operation
hyper-tree copied to clipboard

Expand Nodes on Dynamic Selection

Open chezdesign opened this issue 2 years ago • 1 comments

Hello, So i have a structure like this:

{ "id":2022, "value":2022, "children":{ "id":"June", "value":"June", "children":{ "id":"02", "value":"02", "children":{ "id":"08:00", "value":"08:00" } } } }

I am dynamically selecting the last node with the id: '08:00' with this method: handlers.setSelected(lastNodeId, true); The checkbox becomes checked but the nodes are still uncollapsed.

My question is: how can i select for example the id: '08:00' and in the same time I want all the nodes to be expanded up to that value?

For example if the id: '08:00' is selected, I want the '2022' and 'June' and '02' nodes to be expanded automatically.

Thanks!

chezdesign avatar Oct 03 '22 23:10 chezdesign

@chezdesign Hi! Try handlers.setOpen(lastNodeId)

alekseymakhankov avatar Oct 09 '22 19:10 alekseymakhankov