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

Method tabSwitch

core/src/components/tabs/tabs.tsx:170–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168 }
169
170 private tabSwitch() {
171 const selectedTab = this.selectedTab;
172 const leavingTab = this.leavingTab;
173
174 this.leavingTab = undefined;
175 this.transitioning = false;
176 if (!selectedTab) {
177 return;
178 }
179
180 if (leavingTab !== selectedTab) {
181 if (leavingTab) {
182 leavingTab.active = false;
183 }
184 this.ionTabsDidChange.emit({ tab: selectedTab.tab });
185 }
186 }
187
188 private notifyRouter() {
189 if (this.useRouter) {

Callers 6

selectMethod · 0.95
setRouteIdMethod · 0.95
ngAfterViewInitFunction · 0.80
selectFunction · 0.80
checkActiveTabFunction · 0.80
handleIonTabButtonClickFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected