File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
demo-ng/src/app/examples/bottom-navigation-bar/third-tab Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1
1
< GridLayout class ="p-20 ">
2
- < Label class ="h1 text-center " text ="Thrid tab " textWrap ="true "> </ Label >
2
+ < Label class ="h1 text-center " text ="Third tab " textWrap ="true "> </ Label >
3
3
</ GridLayout >
Original file line number Diff line number Diff line change 5
5
</ActionBar >
6
6
<GridLayout rows =" *, auto" backgroundColor =" blue" >
7
7
<StackLayout class =" page" backgroundColor =" white" row =" 0" >
8
- <!-- <ns-first-tab *ngSwitchDefault></ns-first-tab> -->
9
- <!-- <ns-third-tab *ngSwitchCase="2"></ns-third-tab> -->
8
+ <GridLayout class =" p-20" v-if =" currentTab === 0" > -->
9
+ <Label class =" h1 text-center" text =" First tab" textWrap =" true" ></Label >
10
+ </GridLayout > -->
11
+ <GridLayout class =" p-20" v-if =" currentTab === 2" >
12
+ <Label class =" h1 text-center" text =" Third tab" textWrap =" true" ></Label >
13
+ </GridLayout >
10
14
</StackLayout >
11
15
<MDBottomNavigationBar row =" 1" activeColor =" red" @loaded =" onbottomNavigationBarLoaded" >
12
16
<MDBottomNavigationTab title =" First" icon =" res://ic_home" activeColor =" green" />
@@ -30,7 +34,8 @@ export default Vue.extend({
30
34
name: ' BottomNavigationBar' ,
31
35
data() {
32
36
return {
33
- title: title
37
+ title: title ,
38
+ currentTab: 0
34
39
};
35
40
},
36
41
methods: {
@@ -51,6 +56,7 @@ export default Vue.extend({
51
56
onBottomNavigationTabSelected(args : TabSelectedEventData ): void {
52
57
console .log (` old tab index: ${args .oldIndex } ` );
53
58
console .log (` selected tab index: ${args .newIndex } ` );
59
+ this .currentTab = args .newIndex ;
54
60
},
55
61
56
62
onBottomNavigationTabReselected(args : TabReselectedEventData ): void {
You can’t perform that action at this time.
0 commit comments