MCPcopy
hub / github.com/angular/components / level

Method level

src/cdk/tree/tree.ts:1335–1340  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1333 }
1334
1335 get level(): number {
1336 // If the tree has a levelAccessor, use it to get the level. Otherwise read the
1337 // aria-level off the parent node and use it as the level for this node (note aria-level is
1338 // 1-indexed, while this property is 0-indexed, so we don't need to increment).
1339 return this._tree._getLevel(this._data) ?? this._parentNodeAriaLevel;
1340 }
1341
1342 /** Determines if the tree node is expandable. */
1343 _isExpandable(): boolean {

Callers 4

tree.spec.tsFile · 0.45
TreeItemPatternClass · 0.45
TreePatternClass · 0.45
TreeItemClass · 0.45

Calls 1

_getLevelMethod · 0.80

Tested by

no test coverage detected