How to load progressively the children of an node, without using ajax, but a private function ?
In the documentation of json_data, it says json_data.data can be a function :
You can also set this to a function – it will be executed in the tree’s scope for every node that needs to be loaded, the function will receive two arguments – the node being loaded & a function to call with the data once your processing is done.
But how to use it ?
This solution is based on CheeseWizzz’s post.
This is an example of the
custom_functionwill have to return a valid json data :