Search docs/

ion-alert-controller

Contents

Alert controllers programmatically control the alert component. Alerts can be created and dismissed by the alert controller. View the Alert documentation for the list of options to pass upon creation and usage information.

Methods

create

Description

Create an alert overlay with alert options.

Signaturecreate(options: AlertOptions) => Promise<HTMLIonAlertElement>

dismiss

Description

Dismiss the open alert overlay.

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

getTop

Description

Get the most recently opened alert overlay.

SignaturegetTop() => Promise<HTMLIonAlertElement | undefined>