Lazy loading with jsTree

前端 未结 5 1052
一向
一向 2021-02-07 10:45

I am trying to dynamically load the nodes of a jtree when they are expanded. The little documentation I found is at the end of this page.

I found some solutions that cre

5条回答
  •  误落风尘
    2021-02-07 11:17

    I made my customized lazy loading by combining "select_node.jstree" event and "create_node" method. On selecting every node, event handler checks if there are children and adds response of server to selected node, node by node. My server response was not similar or requirements of jstree and this strategy saved me a lot of time and effort. Hope it helps somebody.

提交回复
热议问题