Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-load expanded lazy nodes #18

Closed
mar10 opened this issue May 19, 2013 · 1 comment
Closed

Auto-load expanded lazy nodes #18

mar10 opened this issue May 19, 2013 · 1 comment
Milestone

Comments

@mar10
Copy link
Owner

mar10 commented May 19, 2013

No description provided.

@mar10
Copy link
Owner Author

mar10 commented Mar 21, 2014

This can be achieved using standard functionality and this simple pattern:

loadChildren: function(event, data) {
    data.node.visit(function(subNode){
        if( subNode.isUndefined() && subNode.isExpanded() ) {
            subNode.load();
        }
    });
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant