Expands a subtree rooted at given data node recursively.
(dataNode: T)
| 82 | |
| 83 | /** Expands a subtree rooted at given data node recursively. */ |
| 84 | expandDescendants(dataNode: T): void { |
| 85 | let toBeProcessed = [dataNode]; |
| 86 | toBeProcessed.push(...this.getDescendants(dataNode)); |
| 87 | this.expansionModel.select(...toBeProcessed.map(value => this._trackByValue(value))); |
| 88 | } |
| 89 | |
| 90 | /** Collapses a subtree rooted at given data node recursively. */ |
| 91 | collapseDescendants(dataNode: T): void { |
nothing calls this directly
no test coverage detected