Navigates to the given tree item in the tree.
(e: PointerEvent, opts?: SelectOptions)
| 450 | |
| 451 | /** Navigates to the given tree item in the tree. */ |
| 452 | goto(e: PointerEvent, opts?: SelectOptions) { |
| 453 | const item = this._getItem(e); |
| 454 | if (!item) return; |
| 455 | |
| 456 | this.treeBehavior.goto(item, opts); |
| 457 | this.treeBehavior.toggleExpansion(item); |
| 458 | } |
| 459 | |
| 460 | /** Expands the active item if possible, otherwise navigates to the first child. */ |
| 461 | _expandOrFirstChild(opts?: SelectOptions) { |
no test coverage detected