JSTree: Dynamically adding Node-Array as children to a Node
I am using XML data plugin to load initial JSTree. Is there a way to add a whole different tree as children from XML via an Ajax call to one of the Child-Nodes?
The create_node allows to add one no开发者_开发问答de at a time.
Any help would be great.
You can use ajax call
to 'add' data to a node. Please read about ajax config section
- Make its status
close
so the ajax will be called. - Then on the server side you return as much data as you want.
精彩评论