Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand Nodes on Dynamic Selection #16

Open
chezdesign opened this issue Oct 3, 2022 · 1 comment
Open

Expand Nodes on Dynamic Selection #16

chezdesign opened this issue Oct 3, 2022 · 1 comment

Comments

@chezdesign
Copy link

chezdesign commented Oct 3, 2022

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!

@alekseymakhankov
Copy link
Owner

alekseymakhankov commented Oct 9, 2022

@chezdesign Hi! Try handlers.setOpen(lastNodeId)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants