File tree 2 files changed +14
-6
lines changed
2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 9
9
"@nativescript-community/ui-material-button" : " file:../packages/button" ,
10
10
"@nativescript-community/ui-material-cardview" : " file:../packages/cardview" ,
11
11
"@nativescript-community/ui-material-core" : " file:../packages/core" ,
12
+ "@nativescript-community/ui-material-core-tabs" : " file:../packages/core-tabs" ,
12
13
"@nativescript-community/ui-material-dialogs" : " file:../packages/dialogs" ,
13
14
"@nativescript-community/ui-material-floatingactionbutton" : " file:../packages/floatingactionbutton" ,
14
15
"@nativescript-community/ui-material-progress" : " file:../packages/progress" ,
45
46
"@nativescript-community/ui-material-core" : {
46
47
"injected" : true
47
48
},
49
+ "@nativescript-community/ui-material-core-tabs" : {
50
+ "injected" : true
51
+ },
48
52
"@nativescript-community/ui-material-dialogs" : {
49
53
"injected" : true
50
54
},
Original file line number Diff line number Diff line change 5
5
</ActionBar >
6
6
7
7
<GridLayout rows =" *, 0" backgroundColor =" red" >
8
- <MDBottomNavigation selectedIndex =" 1" :iosCustomPositioning =" false" >
8
+ <MDBottomNavigation selectedIndex =" 1" :iosCustomPositioning =" false" backgroundColor = " blue " >
9
9
<!-- The bottom tab UI is created via MDTabStrip (the containier) and MDTabStripItem (for each tab)-->
10
10
<MDTabStrip >
11
11
<MDTabStripItem >
24
24
25
25
<!-- The number of MDTabContentItem components should corespond to the number of MDTabStripItem components -->
26
26
<MDTabContentItem >
27
- <Frame id =" test" >
28
- <Page >
29
- <GridLayout backgroundColor =" red" @loaded =" onLoaded('red')" @tap =" navigateToTabsSample" >
30
- <Label text =" Home Page" class =" h2 text-center" ></Label >
27
+ <Frame id =" test" backgroundColor =" transparent" >
28
+ <Page backgroundColor =" transparent" >
29
+ <GridLayout backgroundColor =" transparent" @loaded =" onLoaded('red')" >
30
+ <Label text =" Home Page" class =" h2 text-center" @tap =" navigateToTabsSample" ></Label >
31
+ <Button text =" show alert" @tap =" showTestAlert" verticalAlignment =" center" ></Button >
31
32
</GridLayout >
32
33
</Page >
33
34
</Frame >
34
35
</MDTabContentItem >
35
36
<MDTabContentItem >
36
- <GridLayout backgroundColor =" green " @loaded =" onLoaded('green')" >
37
+ <GridLayout backgroundColor =" transparent " @loaded =" onLoaded('green')" >
37
38
<Label text =" Account Page" class =" h2 text-center" ></Label >
38
39
</GridLayout >
39
40
</MDTabContentItem >
@@ -72,6 +73,9 @@ export default Vue.extend({
72
73
},
73
74
navigateToTabsSample() {
74
75
this .$navigateTo (Tabs );
76
+ },
77
+ showTestAlert() {
78
+ alert (' test' );
75
79
}
76
80
}
77
81
});
You can’t perform that action at this time.
0 commit comments