I'm creating a tree using jstree javascript library https://www.jstree.com/ .I need to create a new node just after current node as a sibling.
- Elem 1
- Elem 2
- Elem 3
My point is when i click on Elem 2 a new node say Elem 2.5 is added in between Elem 2 and Elem 3
so result:--
- Elem 1
- Elem 2
- Elem 2.5
- Elem 3
My current code:
$(".appendTree").jstree('create_node', CurrentNode, html, 'last');
by this new ,nodes are always added at the end.is there any api or workaround to handle this??