Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

HTMLDialogElement

interface HTMLDialogElement extends HTMLElement {
open: boolean;
returnValue: string;
addEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void;
close(returnValue?: string): void;
removeEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void;
show(): void;
showModal(): void;
}
var HTMLDialogElement: {
prototype: HTMLDialogElement;
}
;

§Extends

§Properties

§
open: boolean
[src]
§
returnValue: string
[src]

§Methods

§
addEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
close(returnValue?: string): void
[src]

Closes the dialog element.

The argument, if provided, provides a return value.

§
removeEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
[src]
§
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void
[src]
§
show(): void
[src]

Displays the dialog element.

§
showModal(): void
[src]