mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
wip
This commit is contained in:
29
ionic/components/alert/test/basic/index.ts
Normal file
29
ionic/components/alert/test/basic/index.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
import {App, Alert} from 'ionic/ionic';
|
||||
|
||||
|
||||
@App({
|
||||
templateUrl: 'main.html'
|
||||
})
|
||||
class E2EApp {
|
||||
|
||||
constructor() {
|
||||
this.alertOpen = false;
|
||||
this.confirmOpen = false;
|
||||
this.confirmResult = '';
|
||||
this.promptOpen = false;
|
||||
this.promptResult = '';
|
||||
}
|
||||
|
||||
doAlert() {
|
||||
debugger;
|
||||
let alert = Alert.create();
|
||||
}
|
||||
|
||||
doPrompt() {
|
||||
|
||||
}
|
||||
|
||||
doConfirm() {
|
||||
|
||||
}
|
||||
}
|
||||
18
ionic/components/alert/test/basic/main.html
Normal file
18
ionic/components/alert/test/basic/main.html
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
<ion-content padding>
|
||||
|
||||
<button class="e2eOpenAlert" (click)="doAlert()">Alert</button>
|
||||
<button class="e2eOpenPrompt" (click)="doPrompt()">Prompt</button>
|
||||
<button class="e2eOpenConfirm" (click)="doConfirm()">Confirm</button>
|
||||
|
||||
<pre>
|
||||
Alert Opened: {{alertOpen}}
|
||||
Prompt Opened: {{promptOpen}}
|
||||
Prompt Result: {{promptResult}}
|
||||
Confirm Opened: {{confirmOpen}}
|
||||
Confirm Result: {{confirmResult}}
|
||||
</pre>
|
||||
|
||||
</ion-content>
|
||||
|
||||
<ion-overlay></ion-overlay>
|
||||
Reference in New Issue
Block a user