Files
ionic-framework/core/src/components/loading-controller
2018-10-11 16:49:05 -05:00
..
2018-08-26 19:06:50 +02:00
2018-10-11 16:49:05 -05: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