Collapse all data nodes in the tree.
()
| 720 | |
| 721 | /** Collapse all data nodes in the tree. */ |
| 722 | collapseAll(): void { |
| 723 | if (this.treeControl) { |
| 724 | this.treeControl.collapseAll(); |
| 725 | } else if (this._expansionModel) { |
| 726 | this._forEachExpansionKey(keys => this._expansionModel?.deselect(...keys)); |
| 727 | } |
| 728 | } |
| 729 | |
| 730 | /** Level accessor, used for compatibility between the old Tree and new Tree */ |
| 731 | _getLevelAccessor() { |
nothing calls this directly
no test coverage detected