chore(): update readme

This commit is contained in:
Manu Mtz.-Almeida
2018-10-08 15:44:51 -05:00
parent b4a73ad760
commit 4036db5480
42 changed files with 1966 additions and 215 deletions

View File

@@ -10,11 +10,49 @@ Loading controllers programmatically control the loading component. Loadings can
## Methods
| Method | Description |
| --------- | ---------------------------------------------- |
| `create` | Create a loading overlay with loading options. |
| `dismiss` | Dismiss the open loading overlay. |
| `getTop` | Get the most recently opened loading overlay. |
### `create(opts?: LoadingOptions | undefined) => Promise<HTMLIonLoadingElement>`
Create a loading overlay with loading options.
#### Parameters
| Name | Type | Description |
| ------ | ---------------------------- | ----------- |
| `opts` | `LoadingOptions | undefined` | |
#### Returns
Type: `Promise<HTMLIonLoadingElement>`
### `dismiss(data?: any, role?: string | undefined, id?: string | undefined) => Promise<boolean>`
Dismiss the open loading overlay.
#### Parameters
| Name | Type | Description |
| ------ | -------------------- | ----------- |
| `data` | `any` | |
| `role` | `string | undefined` | |
| `id` | `string | undefined` | |
#### Returns
Type: `Promise<boolean>`
### `getTop() => Promise<HTMLIonLoadingElement | undefined>`
Get the most recently opened loading overlay.
#### Returns
Type: `Promise<HTMLIonLoadingElement | undefined>`
----------------------------------------------