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
Hi, firstly thank you so much for this great library. I hope this request will be evaluated.
We need to get the selected nodes under the specific node(FancyTreeNode instance). I know that the only way to get the selected nodes is to use the method of FancyTree.getSelectedNodes over all tree. If there is another way I don't know sorry about that. For now we implemented this requirement as below but I think adding the method of FancyTreeNode.getSelectedNodes() would be better.
getSelectedNodes: function (key) {
var fancyTreeNode = $(this.domElementId).fancytree("getTree").getNodeByKey(key);
var selectedNodes = [];
fancyTreeNode.visit(function (childNode) {
if (childNode.isSelected()) {
selectedNodes.push(childNode);
}
});
return selectedNodes;
}
Best regards,
The text was updated successfully, but these errors were encountered:
Hi, firstly thank you so much for this great library. I hope this request will be evaluated.
We need to get the selected nodes under the specific node(FancyTreeNode instance). I know that the only way to get the selected nodes is to use the method of FancyTree.getSelectedNodes over all tree. If there is another way I don't know sorry about that. For now we implemented this requirement as below but I think adding the method of FancyTreeNode.getSelectedNodes() would be better.
Best regards,
The text was updated successfully, but these errors were encountered: