Gets the level of the tree item. Note that this gets the aria-level and is 1 indexed.
()
| 62 | |
| 63 | /** Gets the level of the tree item. Note that this gets the aria-level and is 1 indexed. */ |
| 64 | async getLevel(): Promise<number> { |
| 65 | const level = (await this._getHostAttribute('aria-level')) ?? '1'; |
| 66 | return parseInt(level); |
| 67 | } |
| 68 | |
| 69 | /** Gets the tree item's text. */ |
| 70 | async getText(): Promise<string> { |
no test coverage detected