File

libs/upp-base/src/modules/alert.ts

Description

Controller class to manage the presentation and dismissal of the alert modal component.

Index

Methods

Constructor

constructor(modalCtrl: ModalController, options: any)

Initializes a new instance of the AlertModalController class.

Parameters :
Name Type Optional Description
modalCtrl ModalController No
  • The modal controller instance.
options any No
  • Options to configure the modal behavior.

Methods

Async dismiss
dismiss(data: any)

Dismisses the alert modal with the provided data.

Parameters :
Name Type Optional Description
data any No
  • Data to pass back upon dismissal.
Returns : Promise<void>

A promise that resolves when the modal is dismissed.

onDidDismiss
onDidDismiss()

Returns a promise that resolves with the data when the modal is dismissed.

Returns : Promise<any>

A promise containing the data from the dismissal event.

Async present
present()

Presents the alert modal.

Returns : Promise<void>

A promise that resolves when the modal is presented.

results matching ""

    No results matching ""