开发者

JSTree: Dynamically adding Node-Array as children to a Node

开发者 https://www.devze.com 2023-04-09 14:10 出处:网络
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?

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.
0

精彩评论

暂无评论...
验证码 换一张
取 消