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

Method getLevel

src/material/tree/testing/node-harness.ts:49–51  ·  view source on GitHub ↗

Gets the level of the tree node. Note that this gets the aria-level and is 1 indexed.

()

Source from the content-addressed store, hash-verified

47
48 /** Gets the level of the tree node. Note that this gets the aria-level and is 1 indexed. */
49 async getLevel(): Promise<number> {
50 return coerceNumberProperty(await (await this.host()).getAttribute('aria-level'));
51 }
52
53 /** Gets the tree node's text. */
54 async getText(): Promise<string> {

Callers 4

getTreeStructureMethod · 0.45
getNodePredicateFunction · 0.45
expandFlattenedNodesMethod · 0.45

Calls 2

coerceNumberPropertyFunction · 0.90
getAttributeMethod · 0.65

Tested by

no test coverage detected