Files
NativeScript/e2e/ui-tests-app/app/bottom-navigation/fancy-fonts-page.ts
2019-09-19 15:40:31 +03:00

11 lines
415 B
TypeScript

import { EventData, Page } from "tns-core-modules/ui/page/page";
import { BottomNavigation } from "tns-core-modules/ui/bottom-navigation/bottom-navigation";
export const selectTab = (args: EventData) => {
const page = <Page>(<any>args.object).page;
const bottomNav = <BottomNavigation>page.getViewById("bottomNavigation");
const index = (<any>args.object).tag;
bottomNav.selectedIndex = index;
};