(id: string)
| 133 | /** @internal */ |
| 134 | @Method() |
| 135 | async setRouteId(id: string): Promise<RouteWrite> { |
| 136 | const selectedTab = getTab(this.tabs, id); |
| 137 | if (!this.shouldSwitch(selectedTab)) { |
| 138 | return { changed: false, element: this.selectedTab }; |
| 139 | } |
| 140 | |
| 141 | await this.setActive(selectedTab); |
| 142 | return { |
| 143 | changed: true, |
| 144 | element: this.selectedTab, |
| 145 | markVisible: () => this.tabSwitch(), |
| 146 | }; |
| 147 | } |
| 148 | |
| 149 | /** @internal */ |
| 150 | @Method() |
nothing calls this directly
no test coverage detected