mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
chore(): update readme
This commit is contained in:
@ -49,12 +49,52 @@ 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. |
|
||||
| `onWillDismiss` | Returns a promise that resolves when the loading will dismiss. |
|
||||
| `present` | Present the loading overlay after it has been created. |
|
||||
### `dismiss(data?: any, role?: string | undefined) => Promise<boolean>`
|
||||
|
||||
Dismiss the loading overlay after it has been presented.
|
||||
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------ | -------------------- | ----------- |
|
||||
| `data` | `any` | |
|
||||
| `role` | `string | undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
Type: `Promise<boolean>`
|
||||
|
||||
|
||||
|
||||
### `onDidDismiss() => Promise<OverlayEventDetail<any>>`
|
||||
|
||||
Returns a promise that resolves when the loading did dismiss.
|
||||
|
||||
#### Returns
|
||||
|
||||
Type: `Promise<OverlayEventDetail<any>>`
|
||||
|
||||
|
||||
|
||||
### `onWillDismiss() => Promise<OverlayEventDetail<any>>`
|
||||
|
||||
Returns a promise that resolves when the loading will dismiss.
|
||||
|
||||
#### Returns
|
||||
|
||||
Type: `Promise<OverlayEventDetail<any>>`
|
||||
|
||||
|
||||
|
||||
### `present() => Promise<void>`
|
||||
|
||||
Present the loading overlay after it has been created.
|
||||
|
||||
#### Returns
|
||||
|
||||
Type: `Promise<void>`
|
||||
|
||||
|
||||
|
||||
|
||||
----------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user