mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
docs(overlay): onDidDismiss() and onWillDismiss()
This commit is contained in:
@@ -137,7 +137,7 @@ export class Loading implements OverlayInterface {
|
||||
|
||||
@Listen('ionBackdropTap')
|
||||
protected onBackdropTap() {
|
||||
return this.dismiss(null, BACKDROP);
|
||||
return this.dismiss(undefined, BACKDROP);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -167,8 +167,7 @@ export class Loading implements OverlayInterface {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a promise that resolves when the loading did dismiss. It also accepts a callback
|
||||
* that is called in the same circumstances.
|
||||
* Returns a promise that resolves when the loading did dismiss.
|
||||
*/
|
||||
@Method()
|
||||
onDidDismiss(): Promise<OverlayEventDetail> {
|
||||
@@ -176,8 +175,7 @@ export class Loading implements OverlayInterface {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a promise that resolves when the loading will dismiss. It also accepts a callback
|
||||
* that is called in the same circumstances.
|
||||
* Returns a promise that resolves when the loading will dismiss.
|
||||
*/
|
||||
@Method()
|
||||
onWillDismiss(): Promise<OverlayEventDetail> {
|
||||
|
||||
@@ -49,12 +49,12 @@ The loading indicator can be dismissed automatically after a specific amount of
|
||||
|
||||
## Methods
|
||||
|
||||
| Method | Description |
|
||||
| --------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `dismiss` | Dismiss the loading overlay after it has been presented. |
|
||||
| `onDidDismiss` | Returns a promise that resolves when the loading did dismiss. It also accepts a callback that is called in the same circumstances. |
|
||||
| `onWillDismiss` | Returns a promise that resolves when the loading will dismiss. It also accepts a callback that is called in the same circumstances. |
|
||||
| `present` | Present the loading overlay after it has been created. |
|
||||
| Method | Description |
|
||||
| --------------- | -------------------------------------------------------------- |
|
||||
| `dismiss` | Dismiss the loading overlay after it has been presented. |
|
||||
| `onDidDismiss` | Returns a promise that resolves when the loading did dismiss. |
|
||||
| `onWillDismiss` | Returns a promise that resolves when the loading will dismiss. |
|
||||
| `present` | Present the loading overlay after it has been created. |
|
||||
|
||||
|
||||
----------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user