mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
@ionic/core 0.1.4-8
This commit is contained in:
@ -261,9 +261,23 @@ Dismiss the modal overlay after it has been presented.
|
||||
|
||||
#### onDidDismiss()
|
||||
|
||||
Returns a promise that resolves when the modal did dismiss. It also accepts a callback
|
||||
that is called in the same circustances.
|
||||
|
||||
```
|
||||
const {data, role} = await modal.onDidDismiss();
|
||||
```
|
||||
|
||||
|
||||
#### onWillDismiss()
|
||||
|
||||
Returns a promise that resolves when the modal will dismiss. It also accepts a callback
|
||||
that is called in the same circustances.
|
||||
|
||||
```
|
||||
const {data, role} = await modal.onWillDismiss();
|
||||
```
|
||||
|
||||
|
||||
#### present()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user