Docs · API reference · Motus.Abstractions

IDialog Interface#

Represents a JavaScript dialog (alert, confirm, prompt, or beforeunload).

public interface IDialog

Properties#

DefaultValue Property#

Gets the default value of the prompt, or an empty string for non-prompt dialogs.

string? DefaultValue { get; }

Property Value#

System.String

Message Property#

Gets the message displayed in the dialog.

string Message { get; }

Property Value#

System.String

Type Property#

Gets the type of the dialog.

Motus.Abstractions.DialogType Type { get; }

Property Value#

DialogType

Methods#

AcceptAsync(string) Method#

Accepts the dialog, optionally providing a prompt text.

System.Threading.Tasks.Task AcceptAsync(string? promptText=null);

Parameters#

promptText System.String

The text to enter in a prompt dialog.

Returns#

System.Threading.Tasks.Task

DismissAsync() Method#

Dismisses the dialog.

System.Threading.Tasks.Task DismissAsync();

Returns#

System.Threading.Tasks.Task