Files
ionic-framework/packages/core/src/components/alert

ion-alert

Properties

buttons

any

Array of buttons to be added to the alert. See AlertButton type for valid options

cssClass

string

Additional class or classes to apply to the alert

enableBackdropDismiss

boolean

If true, the alert will be dismissed when the backdrop is clicked.

enterAnimation

any

Animation to be used when the alert is shown

inputs

any

Array of input to show in the alert. See AlertInput type for valid options

leaveAnimation

any

Animation to be used when the alert is dismissed

message

string

Message to be shown in the alert

subTitle

string

Subtitle for the alert

title

string

Title for the alert

translucent

boolean

If true, alert will become translucent. Requires support for backdrop-filters.

willAnimate

boolean

Enable alert animations. If false, alert will not animate in

Attributes

buttons

any

Array of buttons to be added to the alert. See AlertButton type for valid options

cssClass

string

Additional class or classes to apply to the alert

enableBackdropDismiss

boolean

If true, the alert will be dismissed when the backdrop is clicked.

enterAnimation

any

Animation to be used when the alert is shown

inputs

any

Array of input to show in the alert. See AlertInput type for valid options

leaveAnimation

any

Animation to be used when the alert is dismissed

message

string

Message to be shown in the alert

subTitle

string

Subtitle for the alert

title

string

Title for the alert

translucent

boolean

If true, alert will become translucent. Requires support for backdrop-filters.

willAnimate

boolean

Enable alert animations. If false, alert will not animate in

Events

ionAlertDidDismiss

ionAlertDidLoad

ionAlertDidPresent

ionAlertDidUnload

ionAlertWillDismiss

ionAlertWillPresent

Methods

dismiss()

Dismiss the alert programatically

present()

Present the alert after is has been created


Built by StencilJS