Table of Contents

Documentation / dialogs/IDialogs

dialogs/IDialogs

Classes

abstract IDialogs

Defines a service for working with dialogs from a view model.

Extended by

Constructors

new IDialogs()

new IDialogs(): IDialogs

Returns

IDialogs

Methods

show()

abstract show<TRequest, TResponse>(input): 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
input

TRequest

The input to pass to the dialog.

Returns

Promise<DialogResponse<TResponse>>

The output from the dialog.

Defined in

Source/JavaScript/Applications.React.MVVM/dialogs/IDialogs.ts:17

showBusyIndicator()

abstract 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.

Defined in

Source/JavaScript/Applications.React.MVVM/dialogs/IDialogs.ts:34

showConfirmation()

abstract 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.

Defined in

Source/JavaScript/Applications.React.MVVM/dialogs/IDialogs.ts:26