开发者

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜