Recursive treeList

I'd like to use treeList widget to allow a user to select nodes from a huge data tree (file system). A specific node content can be loaded dynamically using $.getJSON with a "path" argument.

I noticed that treeList supports this dynamic approach by passing the getJSON function as an argument for children. Yet am not sure how to accomplish it recursively.

Help appreciated!

Ok, found an answer on my own - there is an undocumented second argument item to the children function:

children: function(done, item) {
    $.getJSON('/some/url', function(result) {

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.