vakata / jstree

jquery tree plugin
http://jstree.com
MIT License
5.15k stars 1.38k forks source link

How to select a node after the previous one was deleted? #2445

Closed sagittaracc closed 4 years ago

sagittaracc commented 4 years ago

Is there a way to select the closest node programmatically after the previous selected one was deleted?

vakata commented 4 years ago

Not really, You do however the the parent element, so you could work from that (depending on what you need as "closest"). If you want the next or previous node - you can store those when check_callback happens, and select afterwards when the event fires.