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.

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

dismiss

Description

Dismiss the open toast overlay.

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

getTop

Description

Get the most recently opened toast overlay.

Signature getTop() => Promise<HTMLIonToastElement | undefined>