docs(): update usage and examples

This commit is contained in:
mhartington
2018-05-30 12:40:43 -04:00
parent 8e164d6036
commit 3cdc696847
43 changed files with 389 additions and 397 deletions

View File

@ -27,15 +27,15 @@ export class AlertController implements OverlayController {
removeLastOverlay(this.alerts);
}
/*
* Create an alert overlay with alert options.
/**
* Create an alert overlay with alert options
*/
@Method()
create(opts?: AlertOptions): Promise<HTMLIonAlertElement | null> {
return createOverlay(this.doc.createElement('ion-alert'), opts);
}
/*
/**
* Dismiss the open alert overlay.
*/
@Method()
@ -43,7 +43,7 @@ export class AlertController implements OverlayController {
return dismissOverlay(data, role, this.alerts, alertId);
}
/*
/**
* Get the most recently opened alert overlay.
*/
@Method()

View File

@ -26,12 +26,18 @@ async function presentAlert() {
#### create()
Create an alert overlay with alert options
#### dismiss()
Dismiss the open alert overlay.
#### getTop()
Get the most recently opened alert overlay.
----------------------------------------------