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#
Message Property#
Gets the message displayed in the dialog.
string Message { get; }
Property Value#
Type Property#
Gets the type of the dialog.
Motus.Abstractions.DialogType Type { get; }
Property Value#
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#
DismissAsync() Method#
Dismisses the dialog.
System.Threading.Tasks.Task DismissAsync();