Extends: HTMLElement
See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement
- HTMLDialogElement
- new HTMLDialogElement(document, nodeName, namespaceURI)
- .open :
boolean - .returnValue :
\* - .REJECTION_REASON_NOT_ALLOWED
- .REJECTION_REASON_DETACHED
- .dataset
- .nodeName :
string - .localName :
string - .tagName :
string - .nodeType :
number - .namespaceURI :
string - .id :
string - .tabIndex :
number - .className :
string - .attributes :
NamedNodeMap - .style :
Style - .clientLeft :
number - .clientTop :
number - .clientWidth :
number - .clientHeight :
number - .height :
string|Number - .width :
string|Number - .offsetParent :
Element - .offsetLeft :
number - .offsetTop :
number - .offsetWidth :
number - .offsetHeight :
number - .scrollLeft :
number - .scrollTop :
number - .scrollWidth :
number - .scrollHeight :
number - .uxpContainer :
UXPContainer - .disabled :
boolean - .innerHTML :
string - .outerHTML :
string - .contentEditable
- .isConnected :
boolean - .parentNode :
Node - .parentElement :
Element - .firstChild :
Node - .lastChild :
Node - .previousSibling :
Node - .nextSibling :
Node - .firstElementChild :
Node - .lastElementChild :
Node - .previousElementSibling :
Node - .nextElementSibling :
Node - .textContent :
string - .childNodes :
NodeList - .children :
HTMLCollection - .ownerDocument
- .showModal()
- .close([returnValue])
- .scrollIntoView()
- .scrollIntoViewIfNeeded()
- .focus()
- .blur()
- .getAttribute(name)
- .setAttribute(name, value)
- .removeAttribute(name)
- .hasAttribute(name)
- .getAttributeNode(name)
- .setAttributeNode(newAttr)
- .removeAttributeNode(oldAttr)
- .click()
- .getElementsByClassName(name)
- .getElementsByTagName(name)
- .querySelector(selector)
- .querySelectorAll(selector)
- .getBoundingClientRect()
- .insertAdjacentHTML(position, value)
- .insertAdjacentElement(position, node)
- .insertAdjacentText(position, text)
- .hasChildNodes()
- .cloneNode(deep)
- .appendChild(child)
- .insertBefore(child, before)
- .replaceChild(newChild, oldChild)
- .removeChild(child)
- .remove()
- .before(...nodes)
- .after(...nodes)
- .replaceWith(...nodes)
- .contains(node)
- .addEventListener(eventName, callback, [capture])
- .removeEventListener(eventName, callback, [capture])
- .dispatchEvent(event)
Creates an instance of HTMLDialogElement.
| Param | Type |
|---|---|
| document | \* |
| nodeName | \* |
| namespaceURI | \* |
Read only
When the promise returned from openDialog() is rejected, error.code can be equal to this value, which means that the application does not allow showing dialogs (e.g. only one dialog is allowed).
When the promise returned from openDialog() is rejected, error.code can be equal to this value, which means that the node has been detached from DOM tree.
Access to all the custom data attributes (data-*) set.
See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset
Read only
Read only
Read only
Read only
Read only
htmlDialogElement.attributes : NamedNodeMap
Read only
Read only
Read only
Read only
Read only
Read only
The height of the element
The width of the element
htmlDialogElement.offsetParent : Element
Read only
Read only
Read only
Read only
Read only
Read only
Read only
htmlDialogElement.uxpContainer : UXPContainer
Read only
Read only
Read only
htmlDialogElement.parentNode : Node
Read only
htmlDialogElement.parentElement : Element
Read only
htmlDialogElement.firstChild : Node
Read only
htmlDialogElement.lastChild : Node
Read only
htmlDialogElement.previousSibling : Node
Read only
htmlDialogElement.nextSibling : Node
Read only
htmlDialogElement.firstElementChild : Node
Read only
htmlDialogElement.lastElementChild : Node
Read only
htmlDialogElement.previousElementSibling : Node
Read only
htmlDialogElement.nextElementSibling : Node
Read only
htmlDialogElement.childNodes : NodeList
Read only
htmlDialogElement.children : HTMLCollection
Read only
Read only
Show the modal dialog.
Returns: Promise - A promise that resolves when the dialog is closed (NSC)
after calling the close() method or clicking the "submit" button.
The promise will be resolved with returnValue as a parameter.
The promise can be rejected if the dialog was closed for other reasons
e.g. the user hit escape or closed the window, or if the application
does not allow showing the dialog. The error parameter will give more details.
error.code will be one of the values from HTMLDialogElement.rejectionReasons.
Closes the dialog; setting the return value (optional)
| Param | Type |
|---|---|
| [returnValue] | \* |
| Param | Type |
|---|---|
| name | string |
| Param | Type |
|---|---|
| name | string |
| value | string |
| Param | Type |
|---|---|
| name | string |
| Param | Type |
|---|---|
| name | string |
| Param | Type |
|---|---|
| name | string |
| Param | Type |
|---|---|
| newAttr | \* |
| Param | Type |
|---|---|
| oldAttr | \* |
| Param | Type |
|---|---|
| name | string |
| Param | Type |
|---|---|
| name | string |
| Param | Type |
|---|---|
| selector | string |
| Param | Type |
|---|---|
| selector | string |
| Param | Type |
|---|---|
| position | |
| value | string |
| Param | Type |
|---|---|
| position | \* |
| node | \* |
| Param | Type |
|---|---|
| position | \* |
| text | \* |
| Param | Type |
|---|---|
| deep | boolean |
| Param | Type |
|---|---|
| child | Node |
| Param | Type |
|---|---|
| child | Node |
| before | Node |
| Param | Type |
|---|---|
| newChild | Node |
| oldChild | Node |
| Param | Type |
|---|---|
| child | Node |
| Param | Type |
|---|---|
| ...nodes | Array.<Node> |
| Param | Type |
|---|---|
| ...nodes | Array.<Node> |
| Param | Type |
|---|---|
| ...nodes | Array.<Node> |
| Param | Type |
|---|---|
| node | Node |
| Param | Type | Default |
|---|---|---|
| eventName | \* |
|
| callback | \* |
|
| [capture] | boolean |
false |
| Param | Type | Default |
|---|---|---|
| eventName | \* |
|
| callback | \* |
|
| [capture] | boolean |
false |
| Param | Type |
|---|---|
| event | \* |