Trying to achieve a simple thing with angular-tree-component - the component is so great that I bet it is something obvious that I am overlooking in the API.
I want to programmatically reveal a node, ie. expanding all its ancestors.
const node = this.tree.treeModel.getNodeById(+id);
if (node) {
this.tree.treeModel.setFocusedNode(node);
// now what? :)
}
Neither of the drill methods work for me, setFocusedNode does not reveal the node, it just marks it focused. Help anyone?
node.setActiveAndVisible();does the job