(tab: TabPattern | undefined)
| 274 | /** Opens the given tab or the current active tab. */ |
| 275 | open(tab?: TabPattern): boolean; |
| 276 | open(tab: TabPattern | undefined): boolean { |
| 277 | tab ??= this.activeTab(); |
| 278 | |
| 279 | if (tab === undefined) return false; |
| 280 | |
| 281 | const success = this.expansionBehavior.open(tab); |
| 282 | if (success) { |
| 283 | this.selectedTab.set(tab); |
| 284 | } |
| 285 | |
| 286 | return success; |
| 287 | } |
| 288 | |
| 289 | /** Executes a navigation operation and expand the active tab if needed. */ |
| 290 | private _navigate(op: () => boolean, shouldExpand: boolean = false): void { |
no test coverage detected