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!
Thanks

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) {
        done(result);
    })
}
2 Likes

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