11<template >
22 <Page >
33 <ActionBar :title =" title" >
4- <NavigationButton text =" Back" android.systemIcon =" ic_menu_back" @tap =" onNavigationButtonTap" />
4+ <NavigationButton text =" Back" android.systemIcon =" ic_menu_back" @tap =" onNavigationButtonTap" />
55 </ActionBar >
66 <GridLayout rows =" *, auto" backgroundColor =" blue" >
77 <StackLayout class =" page" backgroundColor =" white" row =" 0" >
8- <GridLayout class =" p-20" v-if =" currentTab === 0" > -->
8+ <GridLayout class =" p-20" v-if =" currentTab === 0" >
99 <Label class =" h1 text-center" text =" First tab" textWrap =" true" ></Label >
10- </GridLayout > -->
10+ <Button text =" select third" @tap =" selectThird" horizontalAlignment =" center" verticalAlignment =" bottom" />
11+ </GridLayout >
1112 <GridLayout class =" p-20" v-if =" currentTab === 2" >
1213 <Label class =" h1 text-center" text =" Third tab" textWrap =" true" ></Label >
1314 </GridLayout >
1415 </StackLayout >
1516 <MDBottomNavigationBar
17+ ref =" bottomBar"
1618 row =" 1"
17- activeColor =" red"
1819 @loaded =" onbottomNavigationBarLoaded"
1920 @tabPressed =" onBottomNavigationTabPressed"
2021 @tabSelected =" onBottomNavigationTabSelected"
21- @tabReselected =" onBottomNavigationTabReselected"
22+ @tabReselected =" onBottomNavigationTabReselected"
2223 >
23- <MDBottomNavigationTab title =" First" icon =" res://ic_home" activeColor =" green" />
24+ <MDBottomNavigationTab title =" First" icon =" res://ic_home" activeColor =" green" />
2425 <MDBottomNavigationTab title =" Second" icon =" res://ic_view_list" isSelectable =" false" />
25- <MDBottomNavigationTab title =" Third" icon =" res://ic_menu" inactiveColor =" brown" />
26+ <MDBottomNavigationTab title =" Third" icon =" res://ic_menu" inactiveColor =" brown" />
2627 </MDBottomNavigationBar >
2728 </GridLayout >
2829 </Page >
@@ -46,6 +47,9 @@ export default Vue.extend({
4647 };
4748 },
4849 methods: {
50+ selectThird() {
51+ this .$refs .bottomBar .nativeView .selectTab (2 );
52+ },
4953 onNavigationButtonTap() {
5054 frameModule .Frame .topmost ().goBack ();
5155 },
0 commit comments