I have a fancy tree solution on my website and i would like to have a button that will trigger a specific node.
Can i activate a specific node from a button click or trigger it after the fancy tree has loaded?
My fancytree code:
$("#tree").fancytree({ //Fancy Tree
checkbox: false,
selectMode: 3,
extensions: ["dnd"],
source: {
url: "@(Url.Action("GetCategoryForFancyTree", "LinksDocuments"))" + '?time=' + timestamp,
success: function(data){
console.log(data);
},
cache: true
}
});
I saw that this code maybe i could use but i dont dont know the node key for the node, how could i retrieve the key?
$("#tree").fancytree("getTree").getNodeByKey("id4.3.2").setActive();