A service to open generic dialogs.
@autoinjectclass Example { constructor(private readonly dialogService: GenericDialogService) {} async example() { const result = await this.dialogService.open({ viewModel: MyDialog }); if (!result.canceled) { console.log("Dialog returned:", result.value); } }} Copy
@autoinjectclass Example { constructor(private readonly dialogService: GenericDialogService) {} async example() { const result = await this.dialogService.open({ viewModel: MyDialog }); if (!result.canceled) { console.log("Dialog returned:", result.value); } }}
Closes all dialogs.
This should be used with caution. Prefer using the GenericDialogController instead.
Opens a dialog.
A promise that resolves with the dialog result when the dialog has been closed.
A service to open generic dialogs.
Example