Created
December 15, 2015 13:56
-
-
Save jbmoelker/226594f195b97bf61436 to your computer and use it in GitHub Desktop.
TypeScript definition for HTMLDialogElement based on MDN documentation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* HTMLDialogELement | |
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement | |
*/ | |
interface HTMLDialogElement extends HTMLElement { | |
/** | |
* Reflects the open HTML attribute, | |
* indicating that the dialog is available for interaction. | |
*/ | |
open:boolean; | |
/** | |
* Gets/sets the return value for the dialog. | |
*/ | |
returnValue:string; | |
/** | |
* Closes the dialog. An optional DOMString may be passed as an argument, | |
* updating the returnValue of the the dialog. | |
*/ | |
close():void | |
/** | |
* Displays the dialog modelessly, i.e. still allowing interaction with content outside of the dialog. | |
* An optional Element or MouseEvent may be passed as an argument, | |
* to specify an anchor point to which the dialog is fixed. | |
*/ | |
show():void | |
/** | |
* Displays the dialog for exclusive interaction, over the top of any other dialogs that might be present. | |
* An optional Element or MouseEvent may be passed as an argument, | |
* to specify an anchor point to which the dialog is fixed. | |
*/ | |
showModal():void | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment