mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
ion-loading-controller
Loading controllers programmatically control the loading component. Loadings can be created and dismissed from the loading controller. View the Loading documentation for a full list of options to pass upon creation.
Methods
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>
Built with StencilJS