Search docs/

ion-toast-controller

Contents

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

Methods

create

Description

Create a toast overlay with toast options.

Signaturecreate(options?: ToastOptions | undefined) => Promise<HTMLIonToastElement>

dismiss

Description

Dismiss the open toast overlay.

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

getTop

Description

Get the most recently opened toast overlay.

SignaturegetTop() => Promise<HTMLIonToastElement | undefined>