5
5
</ActionBar >
6
6
<StackLayout >
7
7
<MDButton id =" bottomsheet" text =" bottomsheet" @tap =" onTap" />
8
+ <MDButton id =" bottomsheet_frame" text =" bottomsheet_frame" @tap =" onTap" />
8
9
<MDButton id =" dont_ignore_top_safe_area" text =" dont_ignore_top_safe_area" @tap =" onTap" />
9
10
<MDButton id =" ignore_bottom_safe_area" text =" ignore_bottom_safe_area" @tap =" onTap" />
10
11
<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';
20
21
import { NativeScriptVue } from ' nativescript-vue' ;
21
22
import Vue from ' vue' ;
22
23
import BottomSheetInner from ' ./BottomSheetInner.vue' ;
24
+ import BottomSheetInnerFrame from ' ./BottomSheetInnerFrame.vue' ;
23
25
import BottomSheetInnerKeyboard from ' ./BottomSheetInnerKeyboard.vue' ;
24
26
25
27
export const title = ' BottomSheet sample' ;
@@ -44,7 +46,23 @@ export default Vue.extend({
44
46
(this as NativeScriptVue ).$showBottomSheet (BottomSheetInner , {
45
47
// transparent: true,
46
48
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
+ }
48
66
},
49
67
closeCallback : (... args ) => {
50
68
console .log (' bottom sheet closed' , args );
0 commit comments