Expands the active item if possible, otherwise navigates to the first child.
(opts?: SelectOptions)
| 464 | |
| 465 | /** Expands the active item if possible, otherwise navigates to the first child. */ |
| 466 | _expandOrFirstChild(opts?: SelectOptions) { |
| 467 | const item = this.treeBehavior.inputs.activeItem(); |
| 468 | if (item && this.treeBehavior.isExpandable(item) && !item.expanded()) { |
| 469 | this.treeBehavior.expand(item); |
| 470 | } else { |
| 471 | this.treeBehavior.firstChild(opts); |
| 472 | } |
| 473 | } |
| 474 | |
| 475 | /** Collapses the active item if possible, otherwise navigates to the parent. */ |
| 476 | _collapseOrParent(opts?: SelectOptions) { |
no test coverage detected