David-Desmaisons/Vue.D3.tree

How to use the "identifier" props?

yasmineTYM opened this issue · 1 comments

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

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;
 }