Expand the data node. If it is already expanded, does nothing.
(dataNode: T)
| 645 | |
| 646 | /** Expand the data node. If it is already expanded, does nothing. */ |
| 647 | expand(dataNode: T): void { |
| 648 | if (this.treeControl) { |
| 649 | this.treeControl.expand(dataNode); |
| 650 | } else if (this._expansionModel) { |
| 651 | this._expansionModel.select(this._getExpansionKey(dataNode)); |
| 652 | } |
| 653 | } |
| 654 | |
| 655 | /** Collapse the data node. If it is already collapsed, does nothing. */ |
| 656 | collapse(dataNode: T): void { |
nothing calls this directly
no test coverage detected