File

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

Description

A service for creating and managing alert modals within the application.

The alertService provides a simplified interface for creating AlertModalController instances, which are used to present and control alert modals. This service encapsulates the modal controller and provides an easy way to configure and present alert modals with custom options, such as enabling or disabling backdrop dismissal and specifying input elements within the modal.

Index

Methods

Constructor

constructor(modalCtrl: ModalController)

Initializes a new instance of the alertService class.

Parameters :
Name Type Optional Description
modalCtrl ModalController No
  • The modal controller instance used to create new modals.

Methods

alert
alert(options: AlertOptions)

Creates a new alert modal controller with the specified options.

Parameters :
Name Type Optional Description
options AlertOptions No
  • Configuration options for the alert modal.

An instance of AlertModalController to manage the modal.

results matching ""

    No results matching ""