libs/upp-base/src/modules/alert.ts
Controller class to manage the presentation and dismissal of the alert modal component.
Methods |
|
constructor(modalCtrl: ModalController, options: any)
|
||||||||||||
|
Initializes a new instance of the
Parameters :
|
| Async dismiss | ||||||||
dismiss(data: any)
|
||||||||
|
Dismisses the alert modal with the provided data.
Parameters :
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. |