Collapse the data node. If it is already collapsed, does nothing.
(dataNode: T)
| 654 | |
| 655 | /** Collapse the data node. If it is already collapsed, does nothing. */ |
| 656 | collapse(dataNode: T): void { |
| 657 | if (this.treeControl) { |
| 658 | this.treeControl.collapse(dataNode); |
| 659 | } else if (this._expansionModel) { |
| 660 | this._expansionModel.deselect(this._getExpansionKey(dataNode)); |
| 661 | } |
| 662 | } |
| 663 | |
| 664 | /** |
| 665 | * If the data node is currently expanded, collapse it and all its descendants. |
nothing calls this directly
no test coverage detected