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

appendNodes method #56

Closed
liangqing opened this issue Jul 26, 2012 · 4 comments
Closed

appendNodes method #56

liangqing opened this issue Jul 26, 2012 · 4 comments

Comments

@liangqing
Copy link

jqTree have appendNode method, but no appendNodes method.

When append a bunch nodes, I must use a loop to add nodes, if appendNodes method exists, then it will be more convenient.

Besides, using appendNode to add a bunch nodes is very slow(I think the sub-tree refreshed in every appendNode operates), if using appendNodes, maybe will be more effective.

@mbraak
Copy link
Owner

mbraak commented Jul 26, 2012

You can use the loadData function. See http://mbraak.github.com/jqTree/#functions-loadData.

Example:

$('#tree1').tree('loadData', data, existing_node);

@liangqing
Copy link
Author

So nice, it works!
And it is more efficient than calling appendNode in a loop.
Thanks.

@cbou
Copy link
Contributor

cbou commented Jan 8, 2013

This issue can be closed I guess

@mbraak mbraak closed this as completed Jan 8, 2013
@mbraak
Copy link
Owner

mbraak commented Jan 8, 2013

Yup. Closed.

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

No branches or pull requests

3 participants