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

How to use the "identifier" props? #62

Closed
yasmineTYM opened this issue Mar 18, 2020 · 1 comment
Closed

How to use the "identifier" props? #62

yasmineTYM opened this issue Mar 18, 2020 · 1 comment

Comments

@yasmineTYM
Copy link

Hi David, I need to update the tree dynamically and required to use the "identifier" according to the documentation, could you please give me more explanation about it? Thanks a lot !!!

@David-Desmaisons
Copy link
Owner

I depends do you need to refresh the reload the tree at some point?
If so, you should worry about it and return a unique identifier of the node. Something like:

 function getId (node) {
    return node.id;
 }

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

2 participants