Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
notifyTabActivated: (index: number) => {
// Synchronize the tabs `activeIndex` to the foundation.
// This is needed when a tab is changed via a click, for example.
this.activeIndex = index;
this.dispatchEvent(new CustomEvent(
MDCTabBarFoundation.strings.TAB_ACTIVATED_EVENT,
{detail: {index}, bubbles: true, cancelable: true}));
},
};
notifyTabActivated: index => {
emitCustomEvent(
this.$el,
MDCTabBarFoundation.strings.TAB_ACTIVATED_EVENT,
{ index },
true,
);
this.$emit('change', index);
},
});