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:
1
core/src/components.d.ts
vendored
1
core/src/components.d.ts
vendored
@ -2034,6 +2034,7 @@ declare global {
|
||||
namespace JSXElements {
|
||||
export interface IonNavAttributes extends HTMLAttributes {
|
||||
root?: any;
|
||||
rootParams?: any;
|
||||
swipeBackEnabled?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
@ -241,9 +241,23 @@ Dismiss the action sheet overlay after it has been presented.
|
||||
|
||||
#### onDidDismiss()
|
||||
|
||||
Returns a promise that resolves when the action-sheet did dismiss. It also accepts a callback
|
||||
that is called in the same circustances.
|
||||
|
||||
```
|
||||
const {data, role} = await actionSheet.onDidDismiss();
|
||||
```
|
||||
|
||||
|
||||
#### onWillDismiss()
|
||||
|
||||
Returns a promise that resolves when the action-sheet will dismiss. It also accepts a callback
|
||||
that is called in the same circustances.
|
||||
|
||||
```
|
||||
const {data, role} = await actionSheet.onWillDismiss();
|
||||
```
|
||||
|
||||
|
||||
#### present()
|
||||
|
||||
|
||||
@ -249,9 +249,23 @@ Dismiss the alert overlay after it has been presented.
|
||||
|
||||
#### onDidDismiss()
|
||||
|
||||
Returns a promise that resolves when the alert did dismiss. It also accepts a callback
|
||||
that is called in the same circustances.
|
||||
|
||||
```
|
||||
const {data, role} = await alert.onDidDismiss();
|
||||
```
|
||||
|
||||
|
||||
#### onWillDismiss()
|
||||
|
||||
Returns a promise that resolves when the alert will dismiss. It also accepts a callback
|
||||
that is called in the same circustances.
|
||||
|
||||
```
|
||||
const {data, role} = await alert.onWillDismiss();
|
||||
```
|
||||
|
||||
|
||||
#### present()
|
||||
|
||||
|
||||
@ -244,9 +244,23 @@ 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 circustances.
|
||||
|
||||
```
|
||||
const {data, role} = await loading.onDidDismiss();
|
||||
```
|
||||
|
||||
|
||||
#### onWillDismiss()
|
||||
|
||||
Returns a promise that resolves when the loading will dismiss. It also accepts a callback
|
||||
that is called in the same circustances.
|
||||
|
||||
```
|
||||
const {data, role} = await loading.onWillDismiss();
|
||||
```
|
||||
|
||||
|
||||
#### present()
|
||||
|
||||
|
||||
@ -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()
|
||||
|
||||
|
||||
@ -12,6 +12,11 @@
|
||||
any
|
||||
|
||||
|
||||
#### rootParams
|
||||
|
||||
any
|
||||
|
||||
|
||||
#### swipeBackEnabled
|
||||
|
||||
boolean
|
||||
@ -24,6 +29,11 @@ boolean
|
||||
any
|
||||
|
||||
|
||||
#### root-params
|
||||
|
||||
any
|
||||
|
||||
|
||||
#### swipe-back-enabled
|
||||
|
||||
boolean
|
||||
|
||||
@ -202,9 +202,23 @@ Dismiss the picker overlay after it has been presented.
|
||||
|
||||
#### onDidDismiss()
|
||||
|
||||
Returns a promise that resolves when the picker did dismiss. It also accepts a callback
|
||||
that is called in the same circustances.
|
||||
|
||||
```
|
||||
const {data, role} = await picker.onDidDismiss();
|
||||
```
|
||||
|
||||
|
||||
#### onWillDismiss()
|
||||
|
||||
Returns a promise that resolves when the picker will dismiss. It also accepts a callback
|
||||
that is called in the same circustances.
|
||||
|
||||
```
|
||||
const {data, role} = await picker.onWillDismiss();
|
||||
```
|
||||
|
||||
|
||||
#### present()
|
||||
|
||||
|
||||
@ -269,9 +269,23 @@ Dismiss the popover overlay after it has been presented.
|
||||
|
||||
#### onDidDismiss()
|
||||
|
||||
Returns a promise that resolves when the popover did dismiss. It also accepts a callback
|
||||
that is called in the same circustances.
|
||||
|
||||
```
|
||||
const {data, role} = await popover.onDidDismiss();
|
||||
```
|
||||
|
||||
|
||||
#### onWillDismiss()
|
||||
|
||||
Returns a promise that resolves when the popover will dismiss. It also accepts a callback
|
||||
that is called in the same circustances.
|
||||
|
||||
```
|
||||
const {data, role} = await popover.onWillDismiss();
|
||||
```
|
||||
|
||||
|
||||
#### present()
|
||||
|
||||
|
||||
@ -254,9 +254,23 @@ Dismiss the toast overlay after it has been presented.
|
||||
|
||||
#### onDidDismiss()
|
||||
|
||||
Returns a promise that resolves when the toast did dismiss. It also accepts a callback
|
||||
that is called in the same circustances.
|
||||
|
||||
```
|
||||
const {data, role} = await toast.onDidDismiss();
|
||||
```
|
||||
|
||||
|
||||
#### onWillDismiss()
|
||||
|
||||
Returns a promise that resolves when the toast will dismiss. It also accepts a callback
|
||||
that is called in the same circustances.
|
||||
|
||||
```
|
||||
const {data, role} = await toast.onWillDismiss();
|
||||
```
|
||||
|
||||
|
||||
#### present()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user