|
1 | 1 | <template> |
2 | 2 | <Page> |
3 | | - |
4 | 3 | <ActionBar :title="title"> |
5 | 4 | <NavigationButton text="Back" android.systemIcon="ic_menu_back" @tap="onNavigationButtonTap" /> |
6 | 5 | </ActionBar> |
7 | | - <GridLayout rows="*, auto" backgroundColor="blue"> |
8 | | - <StackLayout ref="innerView"> |
9 | | - <MDButton id="show_snack" text="show snack" @tap="onTap" /> |
10 | | - <MDButton id="show_snack_action" text="show snack action" @tap="onTap" /> |
11 | | - <MDButton id="show_snack_action_color" text="show snack action color" @tap="onTap" /> |
12 | | - </StackLayout> |
| 6 | + <GridLayout rows="*, auto" id="innerView" ref="innerView"> |
| 7 | + <Frame actionBarHidden="true"> |
| 8 | + <Page actionBarHidden="true" backgroundColor="blue"> |
| 9 | + <StackLayout> |
| 10 | + <MDButton id="show_snack" text="show snack" @tap="onTap" /> |
| 11 | + <MDButton id="show_snack_action" text="show snack action" @tap="onTap" /> |
| 12 | + <MDButton id="show_snack_action_color" text="show snack action color" @tap="onTap" /> |
| 13 | + </StackLayout> |
| 14 | + </Page> |
| 15 | + </Frame> |
13 | 16 | <MDBottomNavigationBar row="1" activeColor="red"> |
14 | 17 | <MDBottomNavigationTab title="First" icon="res://ic_home" activeColor="green" /> |
15 | 18 | <MDBottomNavigationTab title="Second" icon="res://ic_view_list" isSelectable="false" /> |
@@ -56,7 +59,7 @@ export default Vue.extend({ |
56 | 59 | break; |
57 | 60 | } |
58 | 61 | case 'show_snack_action_color': { |
59 | | - showSnack({ message: 'this is test snack with action colored!', actionText: 'delete', actionTextColor: 'red' }).then((r) => { |
| 62 | + showSnack({ message: 'this is test snack with action colored!', actionText: 'delete', actionTextColor: 'red', view: this.$refs.innerView.nativeView }).then((r) => { |
60 | 63 | console.log('showSnack result', r); |
61 | 64 | }); |
62 | 65 | break; |
|
0 commit comments