55 </ActionBar >
66 <StackLayout >
77 <MDButton id =" bottomsheet" text =" bottomsheet" @tap =" onTap" />
8+ <MDButton id =" bottomsheet_frame" text =" bottomsheet_frame" @tap =" onTap" />
89 <MDButton id =" dont_ignore_top_safe_area" text =" dont_ignore_top_safe_area" @tap =" onTap" />
910 <MDButton id =" ignore_bottom_safe_area" text =" ignore_bottom_safe_area" @tap =" onTap" />
1011 <MDButton id =" dont_ignore_top_ignore_bottom_safe_area" text =" dont_ignore_top_ignore_bottom_safe_area" @tap =" onTap" />
@@ -20,6 +21,7 @@ import * as frameModule from '@nativescript/core/ui/frame';
2021import { NativeScriptVue } from ' nativescript-vue' ;
2122import Vue from ' vue' ;
2223import BottomSheetInner from ' ./BottomSheetInner.vue' ;
24+ import BottomSheetInnerFrame from ' ./BottomSheetInnerFrame.vue' ;
2325import BottomSheetInnerKeyboard from ' ./BottomSheetInnerKeyboard.vue' ;
2426
2527export const title = ' BottomSheet sample' ;
@@ -44,7 +46,23 @@ export default Vue.extend({
4446 (this as NativeScriptVue ).$showBottomSheet (BottomSheetInner , {
4547 // transparent: true,
4648 on: {
47- indexChanged : (x ) => { console .log (' listener' , x ) }
49+ indexChanged : (x ) => {
50+ console .log (' listener' , x );
51+ }
52+ },
53+ closeCallback : (... args ) => {
54+ console .log (' bottom sheet closed' , args );
55+ }
56+ });
57+ break ;
58+ }
59+ case ' bottomsheet_frame' : {
60+ (this as NativeScriptVue ).$showBottomSheet (BottomSheetInnerFrame , {
61+ // transparent: true,
62+ on: {
63+ indexChanged : (x ) => {
64+ console .log (' listener' , x );
65+ }
4866 },
4967 closeCallback : (... args ) => {
5068 console .log (' bottom sheet closed' , args );
0 commit comments