Skip to content

vue-mvvm / alert / AlertService

AlertService

A wrapper of the DialogService to simply display common dialogs

Constructors

Constructor

ts
new AlertService(ctx): AlertService;

Parameters

ctx

ReadableGlobalContext

Returns

AlertService

Methods

showAlert()

ts
showAlert(options): Promise<void>;

Show an alert dialog using the defined dialog component in the AppShell

Parameters

options

AlertOptions

Required data for the dialog

Returns

Promise<void>


showConfirm()

ts
showConfirm(options): Promise<boolean>;

Show an confirm dialog using the defined dialog component in the AppShell

Parameters

options

ConfirmOptions

Required data for the dialog

Returns

Promise<boolean>