Table of Contents

Interface IHtmlDialogElement

Namespace
AngleSharp.Html.Dom
Assembly
AngleSharp.dll

Repesents the dialog HTML element.

[DomName("HTMLDialogElement")]
public interface IHtmlDialogElement : IHtmlElement, IElement, INode, IEventTarget, IMarkupFormattable, IParentNode, IChildNode, INonDocumentTypeChildNode, IGlobalEventHandlers
Inherited Members
Extension Methods

Properties

Open

Gets or sets if the dialog is open.

[DomName("open")]
bool Open { get; set; }

Property Value

bool

ReturnValue

Gets or sets the return value of the dialog.

[DomName("returnValue")]
string? ReturnValue { get; set; }

Property Value

string

Methods

Close(string?)

Closes the dialog.

[DomName("close")]
void Close(string? returnValue = null)

Parameters

returnValue string

The return value to set.

Show(IElement?)

Shows the dialog, optionally anchored to the element.

[DomName("show")]
void Show(IElement? anchor = null)

Parameters

anchor IElement

The element, where the dialog is anchored.

ShowModal(IElement?)

Shows the dialog modally, optionally anchored to the element.

[DomName("showModal")]
void ShowModal(IElement? anchor = null)

Parameters

anchor IElement

The element, where the dialog is anchored.