Determines if the tree node is expandable.
()
| 1341 | |
| 1342 | /** Determines if the tree node is expandable. */ |
| 1343 | _isExpandable(): boolean { |
| 1344 | if (this._tree.treeControl) { |
| 1345 | if (this.isLeafNode) { |
| 1346 | return false; |
| 1347 | } |
| 1348 | |
| 1349 | // For compatibility with trees created using TreeControl before we added |
| 1350 | // CdkTreeNode#isExpandable. |
| 1351 | return true; |
| 1352 | } |
| 1353 | return this._inputIsExpandable; |
| 1354 | } |
| 1355 | |
| 1356 | /** |
| 1357 | * Determines the value for `aria-expanded`. |
no outgoing calls
no test coverage detected