File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 23
23
24
24
<!-- The number of MDTabContentItem components should corespond to the number of MDTabStripItem components -->
25
25
<MDTabContentItem >
26
- <GridLayout backgroundColor =" red" @loaded =" onLoaded('red')" >
26
+ <GridLayout backgroundColor =" red" @loaded =" onLoaded('red')" @tap = " navigateToTabsSample " >
27
27
<Label text =" Home Page" class =" h2 text-center" ></Label >
28
28
</GridLayout >
29
29
</MDTabContentItem >
43
43
44
44
<script lang="ts">
45
45
import * as frameModule from ' @nativescript/core/ui/frame' ;
46
- import { Tabs } from ' @nativescript-community/ui-material-tabs' ;
47
46
import { EventData } from ' @nativescript/core' ;
47
+ import Tabs from ' ./Tabs.vue' ;
48
48
49
49
import Vue from ' vue' ;
50
50
@@ -63,6 +63,10 @@ export default Vue.extend({
63
63
},
64
64
onLoaded(name ) {
65
65
console .log (' onTabLoaded' , name )
66
+ },
67
+ navigateToTabsSample() {
68
+ this .$navigateTo (Tabs );
69
+
66
70
}
67
71
}
68
72
});
You can’t perform that action at this time.
0 commit comments