Table of Contents

Documentation / dialogs/Dialogs

dialogs/Dialogs

Classes

Dialogs

Represents an implementation of IDialogs.

Extends

Constructors

new Dialogs()

new Dialogs(_dialogMediatorHandler, dialogComponents): Dialogs

Initializes a new instance of the Dialogs class.

Parameters
_dialogMediatorHandler

IDialogMediatorHandler

dialogComponents

IDialogComponents

Returns

Dialogs

Overrides

IDialogs.constructor

Defined in

Source/JavaScript/Applications.React.MVVM/dialogs/Dialogs.ts:18

Methods

show()

show<TRequest, TResponse>(request): Promise<DialogResponse<TResponse>>

Show a dialog in the context of the current view and view model. This requires the view to host the dialog.

Type Parameters

TRequest extends object

TResponse = object

Parameters
request

TRequest

The input to pass to the dialog.

Returns

Promise<DialogResponse<TResponse>>

The output from the dialog.

Overrides

IDialogs.show

Defined in

Source/JavaScript/Applications.React.MVVM/dialogs/Dialogs.ts:41

showBusyIndicator()

showBusyIndicator(title, message): BusyIndicator

Show a standard busy indicator dialog.

Parameters
title

string

Title of the dialog.

message

string

Message to show inside the dialog.

Returns

BusyIndicator

The busy indicator instance.

Overrides

IDialogs.showBusyIndicator

Defined in

Source/JavaScript/Applications.React.MVVM/dialogs/Dialogs.ts:52

showConfirmation()

showConfirmation(title, message, buttons): Promise<DialogResult>

Show a standard confirmation dialog.

Parameters
title

string

Title of the dialog.

message

string

Message to show inside the dialog.

buttons

DialogButtons

Buttons to have on the dialog

Returns

Promise<DialogResult>

The result of the dialog.

Overrides

IDialogs.showConfirmation

Defined in

Source/JavaScript/Applications.React.MVVM/dialogs/Dialogs.ts:46