Files
ionic-framework/core/src/components/toast-controller
2018-10-11 16:49:05 -05:00
..
2018-10-11 16:49:05 -05:00

ion-toast-controller

ToastController is a component use to create Toast components. Please see the docs for Toast.

Methods

create(opts?: ToastOptions | undefined) => Promise<HTMLIonToastElement>

Create a toast overlay with toast options.

Parameters

Name Type Description
opts ToastOptions | undefined

Returns

Type: Promise<HTMLIonToastElement>

dismiss(data?: any, role?: string | undefined, id?: string | undefined) => Promise<boolean>

Dismiss the open toast overlay.

Parameters

Name Type Description
data any
role string | undefined
id string | undefined

Returns

Type: Promise<boolean>

getTop() => Promise<HTMLIonToastElement | undefined>

Get the most recently opened toast overlay.

Returns

Type: Promise<HTMLIonToastElement | undefined>


Built with StencilJS