You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling activateKey for a node that has not yet been loaded lazily, nothing happens as getNodeByKey doesn't find a node. Could a new feature be added that in this case Fancytree will make a lazy load operation to fetch the missing tree branch? If the convention will be to return a node source with all ancestor nodes and their siblings, the missing branch could added to the tree.
The text was updated successfully, but these errors were encountered:
How would we know, what branch is the parent?
Maybe you can implement a sample function that solves your problem by sending an ajax request to the server and then uses what we have (tree. loadKeyPath(), .tree. applyPatch(), ...).
Then we can see if and how we can generalize it to add it to the core. I.e. what events should be triggered, what options should be available, etc.
Read the code more after filing this issue and noticed I can implement the desired functionality with loadKeyPath. The only custom code I needed was to generate the key path based on the stable key scheme I was using. Closing this issue.
When calling
activateKey
for a node that has not yet been loaded lazily, nothing happens asgetNodeByKey
doesn't find a node. Could a new feature be added that in this case Fancytree will make a lazy load operation to fetch the missing tree branch? If the convention will be to return a node source with all ancestor nodes and their siblings, the missing branch could added to the tree.The text was updated successfully, but these errors were encountered: