()
| 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 { |
no test coverage detected