(tab: TabPattern | undefined)
| 292 | /** Opens the given tab or the current active tab. */ |
| 293 | open(tab?: TabPattern): boolean; |
| 294 | open(tab: TabPattern | undefined): boolean { |
| 295 | tab ??= this.activeTab(); |
| 296 | |
| 297 | if (tab === undefined) return false; |
| 298 | |
| 299 | const success = this.expansionBehavior.open(tab); |
| 300 | if (success) { |
| 301 | this.selectedTab.set(tab); |
| 302 | } |
| 303 | |
| 304 | return success; |
| 305 | } |
| 306 | |
| 307 | /** Executes a navigation operation and expand the active tab if needed. */ |
| 308 | private _navigate(op: () => boolean, shouldExpand: boolean = false): void { |
no test coverage detected