This commit is contained in:
Adam Bradley
2015-12-30 15:03:05 -06:00
parent c136d2143a
commit 2c169ff508
11 changed files with 372 additions and 379 deletions

View File

@@ -8,7 +8,6 @@ class E2EPage {
constructor(nav: NavController) {
this.nav = nav;
this.testAlertOpen = false;
this.testConfirmOpen = false;
this.testPromptOpen = false;
this.testConfirmResult = '';
@@ -19,15 +18,10 @@ class E2EPage {
let alert = Alert.create({
title: 'Alert!',
subTitle: 'Subtitle!!!',
buttons: ['Ok'],
onDismiss: () => {
this.testAlertOpen = false;
}
buttons: ['Ok']
});
this.nav.present(alert);
this.testAlertOpen = true;
}
doConfirm() {
@@ -39,6 +33,7 @@ class E2EPage {
handler: () => {
console.log('Confirm Cancel');
this.testConfirmResult = 'Cancel';
this.testConfirmOpen = false;
}
});
alert.addButton({
@@ -46,13 +41,10 @@ class E2EPage {
handler: () => {
console.log('Confirm Ok');
this.testConfirmResult = 'Ok';
this.testConfirmOpen = false;
}
});
alert.onDismiss(data => {
this.testConfirmOpen = false;
});
this.nav.present(alert).then(() => {
this.testConfirmOpen = true;
});
@@ -87,14 +79,11 @@ class E2EPage {
text: 'Ok',
handler: data => {
console.log('Prompt data:', data);
this.testPromptOpen = false;
this.testPromptResult = data;
}
});
alert.onDismiss(data => {
this.testPromptOpen = false;
this.testPromptResult = data;
});
this.nav.present(alert).then(() => {
this.testPromptOpen = true;
});

View File

@@ -10,7 +10,6 @@
<button class="e2eOpenPrompt" (click)="doPrompt()">Prompt</button>
<pre>
Alert Opened: {{testAlertOpen}}
Confirm Opened: {{testConfirmOpen}}
Confirm Result: {{testConfirmResult}}
Prompt Opened: {{testPromptOpen}}