I have difficulties in selecting a given node from fancytree plugin.
So, I have tried something like:
$("#tree").fancytree("getTree").visit(function(node){
node.select(n);
});
where "n" is any number representing the node id, but it doesn'work, even if the select() function exists in documentation
Could someone help?
var tree = $("#tree").fancytree("getTree");
var node = tree.getNodeByKey(n);
node.setSelected(true);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With