mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
docs(): update usage and examples
This commit is contained in:
@ -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()
|
||||
|
||||
@ -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.
|
||||
|
||||
|
||||
|
||||
----------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user