HTMLDialogElement ⇐ HTMLElement

Kind: global class Extends: HTMLElement Access: public See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement

new HTMLDialogElement(document, nodeName, namespaceURI)

Creates an instance of HTMLDialogElement.

Param Type
document *
nodeName *
namespaceURI *

htmlDialogElement.open : boolean

Kind: instance property of HTMLDialogElement Read only: true

htmlDialogElement.returnValue : *

Kind: instance property of HTMLDialogElement

htmlDialogElement.REJECTION_REASON_NOT_ALLOWED

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).

Kind: instance property of HTMLDialogElement

htmlDialogElement.REJECTION_REASON_DETACHED

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.

Kind: instance property of HTMLDialogElement

htmlDialogElement.nodeName : string

Kind: instance property of HTMLDialogElement Read only: true

htmlDialogElement.localName : string

Kind: instance property of HTMLDialogElement Read only: true

htmlDialogElement.tagName : string

Kind: instance property of HTMLDialogElement Read only: true

htmlDialogElement.nodeType : number

Kind: instance property of HTMLDialogElement Read only: true

htmlDialogElement.namespaceURI : string

Kind: instance property of HTMLDialogElement Read only: true

htmlDialogElement.id : string

Kind: instance property of HTMLDialogElement

htmlDialogElement.className : string

Kind: instance property of HTMLDialogElement

htmlDialogElement.attributes : NamedNodeMap

Kind: instance property of HTMLDialogElement Read only: true

htmlDialogElement.style : Style

Kind: instance property of HTMLDialogElement Read only: true

htmlDialogElement.clientLeft : number

Kind: instance property of HTMLDialogElement Read only: true

htmlDialogElement.clientTop : number

Kind: instance property of HTMLDialogElement Read only: true

htmlDialogElement.clientWidth : number

Kind: instance property of HTMLDialogElement Read only: true

htmlDialogElement.clientHeight : number

Kind: instance property of HTMLDialogElement Read only: true

htmlDialogElement.offsetLeft : number

Kind: instance property of HTMLDialogElement Read only: true

htmlDialogElement.offsetTop : number

Kind: instance property of HTMLDialogElement Read only: true

htmlDialogElement.offsetWidth : number

Kind: instance property of HTMLDialogElement Read only: true

htmlDialogElement.offsetHeight : number

Kind: instance property of HTMLDialogElement Read only: true

htmlDialogElement.scrollLeft : number

Kind: instance property of HTMLDialogElement

htmlDialogElement.scrollTop : number

Kind: instance property of HTMLDialogElement

htmlDialogElement.scrollWidth : number

Kind: instance property of HTMLDialogElement Read only: true

htmlDialogElement.scrollHeight : number

Kind: instance property of HTMLDialogElement Read only: true

htmlDialogElement.disabled : boolean

Kind: instance property of HTMLDialogElement

htmlDialogElement.innerHTML : string

Kind: instance property of HTMLDialogElement

htmlDialogElement.outerHTML : string

Kind: instance property of HTMLDialogElement

htmlDialogElement.contentEditable

Kind: instance property of HTMLDialogElement Read only: true

htmlDialogElement.isConnected : boolean

Kind: instance property of HTMLDialogElement Read only: true

htmlDialogElement.parentNode : Node

Kind: instance property of HTMLDialogElement Read only: true

htmlDialogElement.firstChild : Node

Kind: instance property of HTMLDialogElement Read only: true

htmlDialogElement.lastChild : Node

Kind: instance property of HTMLDialogElement Read only: true

htmlDialogElement.previousSibling : Node

Kind: instance property of HTMLDialogElement Read only: true

htmlDialogElement.nextSibling : Node

Kind: instance property of HTMLDialogElement Read only: true

htmlDialogElement.firstElementChild : Node

Kind: instance property of HTMLDialogElement Read only: true

htmlDialogElement.lastElementChild : Node

Kind: instance property of HTMLDialogElement Read only: true

htmlDialogElement.previousElementSibling : Node

Kind: instance property of HTMLDialogElement Read only: true

htmlDialogElement.nextElementSibling : Node

Kind: instance property of HTMLDialogElement Read only: true

htmlDialogElement.textContent : string

Kind: instance property of HTMLDialogElement

htmlDialogElement.childNodes : NodeList

Kind: instance property of HTMLDialogElement Read only: true

htmlDialogElement.ownerDocument

Kind: instance property of HTMLDialogElement Read only: true

htmlDialogElement.offsetParent

Kind: instance property of HTMLDialogElement Read only: true

htmlDialogElement.showModal() ⇒ Promise

Show the modal dialog.

Kind: instance method of HTMLDialogElement 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.

htmlDialogElement.close([returnValue])

Closes the dialog; setting the return value (optional)

Kind: instance method of HTMLDialogElement

Param Type
[returnValue] *

htmlDialogElement.scrollIntoView()

Kind: instance method of HTMLDialogElement

htmlDialogElement.scrollIntoViewIfNeeded()

Kind: instance method of HTMLDialogElement

htmlDialogElement.focus()

Kind: instance method of HTMLDialogElement

htmlDialogElement.blur()

Kind: instance method of HTMLDialogElement

htmlDialogElement.getAttribute(name) ⇒ string

Kind: instance method of HTMLDialogElement

Param Type
name string

htmlDialogElement.setAttribute(name, value)

Kind: instance method of HTMLDialogElement

Param Type
name string
value string

htmlDialogElement.removeAttribute(name)

Kind: instance method of HTMLDialogElement

Param Type
name string

htmlDialogElement.hasAttribute(name) ⇒ boolean

Kind: instance method of HTMLDialogElement

Param Type
name string

htmlDialogElement.getAttributeNode(name) ⇒ *

Kind: instance method of HTMLDialogElement

Param Type
name string

htmlDialogElement.setAttributeNode(newAttr)

Kind: instance method of HTMLDialogElement

Param Type
newAttr *

htmlDialogElement.removeAttributeNode(oldAttr)

Kind: instance method of HTMLDialogElement

Param Type
oldAttr *

htmlDialogElement.getElementsByClassName(name) ⇒ NodeList

Kind: instance method of HTMLDialogElement

Param Type
name string

htmlDialogElement.getElementsByTagName(name) ⇒ NodeList

Kind: instance method of HTMLDialogElement

Param Type
name string

htmlDialogElement.querySelector(selector) ⇒ Element

Kind: instance method of HTMLDialogElement

Param Type
selector string

htmlDialogElement.querySelectorAll(selector) ⇒ NodeList

Kind: instance method of HTMLDialogElement

Param Type
selector string

htmlDialogElement.getBoundingClientRect() ⇒ *

Kind: instance method of HTMLDialogElement

htmlDialogElement.insertAdjacentHTML(position, value)

Kind: instance method of HTMLDialogElement

Param Type
position
value string

htmlDialogElement.insertAdjacentElement(position, node) ⇒ Node

Kind: instance method of HTMLDialogElement

Param Type
position *
node *

htmlDialogElement.insertAdjacentText(position, text)

Kind: instance method of HTMLDialogElement

Param Type
position *
text *

htmlDialogElement.hasChildNodes() ⇒ boolean

Kind: instance method of HTMLDialogElement

htmlDialogElement.cloneNode(deep) ⇒ Node

Kind: instance method of HTMLDialogElement

Param Type
deep boolean

htmlDialogElement.appendChild(child) ⇒ Node

Kind: instance method of HTMLDialogElement

Param Type
child Node

htmlDialogElement.insertBefore(child, before) ⇒ Node

Kind: instance method of HTMLDialogElement

Param Type
child Node
before Node

htmlDialogElement.replaceChild(newChild, oldChild) ⇒ Node

Kind: instance method of HTMLDialogElement

Param Type
newChild Node
oldChild Node

htmlDialogElement.removeChild(child) ⇒ Node

Kind: instance method of HTMLDialogElement

Param Type
child Node

htmlDialogElement.remove()

Kind: instance method of HTMLDialogElement

htmlDialogElement.before(...nodes)

Kind: instance method of HTMLDialogElement

Param Type
...nodes Array.<Node>

htmlDialogElement.after(...nodes)

Kind: instance method of HTMLDialogElement

Param Type
...nodes Array.<Node>

htmlDialogElement.replaceWith(...nodes)

Kind: instance method of HTMLDialogElement

Param Type
...nodes Array.<Node>

htmlDialogElement.addEventListener(eventName, callback, [capture])

Kind: instance method of HTMLDialogElement

Param Type Default
eventName *
callback *
[capture] boolean false

htmlDialogElement.removeEventListener(eventName, callback, [capture])

Kind: instance method of HTMLDialogElement

Param Type Default
eventName *
callback *
[capture] boolean false

htmlDialogElement.dispatchEvent(event)

Kind: instance method of HTMLDialogElement

Param Type
event *

results matching ""

    No results matching ""