Add children dataNodes to the NodeOutlet
(children?: T[])
| 76 | |
| 77 | /** Add children dataNodes to the NodeOutlet */ |
| 78 | protected updateChildrenNodes(children?: T[]): void { |
| 79 | const outlet = this._getNodeOutlet(); |
| 80 | if (children) { |
| 81 | this._children = children; |
| 82 | } |
| 83 | if (outlet && this._children) { |
| 84 | const viewContainer = outlet.viewContainer; |
| 85 | this._tree.renderNodeChanges(this._children, this._dataDiffer, viewContainer, this._data); |
| 86 | } else { |
| 87 | // Reset the data differ if there's no children nodes displayed |
| 88 | this._dataDiffer.diff([]); |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | /** Clear the children dataNodes. */ |
| 93 | protected _clear(): void { |
no test coverage detected