MCPcopy Index your code
hub / github.com/angular/components / _isExpandable

Method _isExpandable

src/cdk/tree/tree.ts:1343–1354  ·  view source on GitHub ↗

Determines if the tree node is expandable.

()

Source from the content-addressed store, hash-verified

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`.

Callers 2

isExpandableMethod · 0.95
_getAriaExpandedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected