ISecondaryDialogProvider interface

This interface handles calls to show a secondary dialog. It's only available by calling this.secondaryManagerProvider inside a dialog.

Remarks

Secondary dialogs do not need to request permission from dialog manager, because the primary dialog already has permission. Therefore, the secondary dialog will be immediately shown. This causes the primary dialog to hide until the secondary dialog is closed. There can be only one secondary dialog at a time. Additional requests to show more secondary dialogs are rejected.

See BaseDialog.secondaryDialogProvider for how to use this.

Methods

alert(message, options)

Similar to Dialog.alert(). The only difference is that the dialog is immediately shown if there are no other secondary dialogs. Otherwise, the promise rejects.

prompt(message, options)

Similar to Dialog.prompt(). The only difference is that the dialog is immediately shown if there are no other secondary dialogs. Otherwise, the promise rejects.

show(dialog, options)

Similar to BaseDialog.show(). The dialog to show is passed in as parameter and the dialog is immediately shown if there are no other secondary dialogs. Otherwise, the promise rejects.

Method Details

alert(message, options)

Similar to Dialog.alert(). The only difference is that the dialog is immediately shown if there are no other secondary dialogs. Otherwise, the promise rejects.

alert(message: string, options?: IAlertOptions): Promise<void>;

Parameters

message

string

options
IAlertOptions

Dialog showing options. See IDialogShowOptions for more information.

Returns

Promise<void>

prompt(message, options)

Similar to Dialog.prompt(). The only difference is that the dialog is immediately shown if there are no other secondary dialogs. Otherwise, the promise rejects.

prompt(message: string, options?: IPromptOptions): Promise<string | undefined>;

Parameters

message

string

options
IPromptOptions

Dialog showing options. The confirmOpen option will be ignored. See IDialogShowOptions for more information.

Returns

Promise<string | undefined>

show(dialog, options)

Similar to BaseDialog.show(). The dialog to show is passed in as parameter and the dialog is immediately shown if there are no other secondary dialogs. Otherwise, the promise rejects.

show(dialog: BaseDialog, options?: IDialogShowOptions): Promise<void>;

Parameters

dialog
BaseDialog
options
IDialogShowOptions

Dialog showing options. The confirmOpen option will be ignored. See IDialogShowOptions for more information.

Returns

Promise<void>