【发布时间】:2018-11-30 04:12:26
【问题描述】:
展开/折叠 mat-tree 中的所有节点工作正常。但我不明白如何扩展 mat-tree 中的特定节点?
请为此提供任何参考或解决方案。
【问题讨论】:
-
plese consult help section on how to formulate your question 你通常会得到尽可能多的帮助,就像你在问题表述上付出的努力一样多。
-
你能展示一下你到目前为止所尝试的吗?
-
我已经尝试了一些东西并且知道 mat-tree 的 treeControl 包含我想要扩展的节点。 var 节点 = this.treeControlTarget.dataNodes; let referenceToNode = nodes.find(d => condition to find node) this.treeControlTarget.expand(referenceToNode);谢谢
标签: tree angular-material angular6