MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / setRouteId

Method setRouteId

core/src/components/tabs/tabs.tsx:135–147  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls 4

shouldSwitchMethod · 0.95
setActiveMethod · 0.95
tabSwitchMethod · 0.95
getTabFunction · 0.85

Tested by

no test coverage detected