Skip to content

Commit 4a9471e

Browse files
committed
test: vue demo app
1 parent b824e7f commit 4a9471e

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

demo-vue/app/examples/Dialogs.vue

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<MDButton id="alert" text="alert" @tap="onTap" />
88
<MDButton id="prompt" text="prompt" @tap="onTap" />
99
<MDButton id="confirm" text="confirm" @tap="onTap" />
10+
<MDButton id="action" text="action" @tap="onTap" />
1011
<MDButton id="password" text="password" @tap="onTap" />
1112
<MDButton id="login" text="login" @tap="onTap" />
1213
<MDButton id="dialogCustomView" text="customView" @tap="onTap" />
@@ -19,7 +20,7 @@
1920
import * as frameModule from '@nativescript/core/ui/frame';
2021
import Vue from 'vue';
2122
import { EventData, View, Color } from '@nativescript/core/ui/frame';
22-
import { alert, confirm, AlertDialog, login, prompt, inputType } from 'nativescript-material-dialogs';
23+
import { action, alert, confirm, AlertDialog, login, prompt, inputType } from 'nativescript-material-dialogs';
2324
import { StackLayout } from '@nativescript/core/ui/layouts/stack-layout/stack-layout';
2425
import { ActivityIndicator } from '@nativescript/core/ui/activity-indicator/activity-indicator';
2526
import { Label } from '@nativescript/core/ui/label/label';
@@ -117,6 +118,16 @@ export default Vue.extend({
117118
}).then(result => console.log('login result', result));
118119
break;
119120
}
121+
case 'action': {
122+
console.log('about to action');
123+
action({
124+
message: 'this is test Prompt!',
125+
cancelButtonText: 'Cancel',
126+
title: 'title?',
127+
actions: ['action1', 'action2', 'action3'],
128+
}).then(result => console.log('action result', result));
129+
break;
130+
}
120131
121132
case 'alertdialog':
122133
const stack = new StackLayout();

0 commit comments

Comments
 (0)