Image
Constructors
Properties
assignedSlot
open val assignedSlot: HTMLSlotElement?
childElementCount
open val childElementCount: Int
children
open val children: HTMLCollection
contentEditable
open var contentEditable: String
firstElementChild
open val firstElementChild: Element?
isContentEditable
open val isContentEditable: Boolean
lastElementChild
open val lastElementChild: Element?
nextElementSibling
open val nextElementSibling: Element?
onblur
open var onblur: ((FocusEvent) -> dynamic)?
oncanplaythrough
open var oncanplaythrough: ((Event) -> dynamic)?
onclick
open var onclick: ((MouseEvent) -> dynamic)?
oncontextmenu
open var oncontextmenu: ((MouseEvent) -> dynamic)?
oncopy
open var oncopy: ((ClipboardEvent) -> dynamic)?
oncuechange
open var oncuechange: ((Event) -> dynamic)?
oncut
open var oncut: ((ClipboardEvent) -> dynamic)?
ondblclick
open var ondblclick: ((MouseEvent) -> dynamic)?
ondragenter
open var ondragenter: ((DragEvent) -> dynamic)?
ondragexit
open var ondragexit: ((DragEvent) -> dynamic)?
ondragleave
open var ondragleave: ((DragEvent) -> dynamic)?
ondragover
open var ondragover: ((DragEvent) -> dynamic)?
ondragstart
open var ondragstart: ((DragEvent) -> dynamic)?
ondurationchange
open var ondurationchange: ((Event) -> dynamic)?
onerror
open var onerror: ((dynamic, String, Int, Int, Any?) -> dynamic)?
onfocus
open var onfocus: ((FocusEvent) -> dynamic)?
ongotpointercapture
open var ongotpointercapture: ((PointerEvent) -> dynamic)?
oninput
open var oninput: ((InputEvent) -> dynamic)?
onkeydown
open var onkeydown: ((KeyboardEvent) -> dynamic)?
onkeypress
open var onkeypress: ((KeyboardEvent) -> dynamic)?
onkeyup
open var onkeyup: ((KeyboardEvent) -> dynamic)?
onloadeddata
open var onloadeddata: ((Event) -> dynamic)?
onloadedmetadata
open var onloadedmetadata: ((Event) -> dynamic)?
onloadstart
open var onloadstart: ((ProgressEvent) -> dynamic)?
onlostpointercapture
open var onlostpointercapture: ((PointerEvent) -> dynamic)?
onmousedown
open var onmousedown: ((MouseEvent) -> dynamic)?
onmouseenter
open var onmouseenter: ((MouseEvent) -> dynamic)?
onmouseleave
open var onmouseleave: ((MouseEvent) -> dynamic)?
onmousemove
open var onmousemove: ((MouseEvent) -> dynamic)?
onmouseout
open var onmouseout: ((MouseEvent) -> dynamic)?
onmouseover
open var onmouseover: ((MouseEvent) -> dynamic)?
onmouseup
open var onmouseup: ((MouseEvent) -> dynamic)?
onpaste
open var onpaste: ((ClipboardEvent) -> dynamic)?
onpointercancel
open var onpointercancel: ((PointerEvent) -> dynamic)?
onpointerdown
open var onpointerdown: ((PointerEvent) -> dynamic)?
onpointerenter
open var onpointerenter: ((PointerEvent) -> dynamic)?
onpointerleave
open var onpointerleave: ((PointerEvent) -> dynamic)?
onpointermove
open var onpointermove: ((PointerEvent) -> dynamic)?
onpointerout
open var onpointerout: ((PointerEvent) -> dynamic)?
onpointerover
open var onpointerover: ((PointerEvent) -> dynamic)?
onpointerup
open var onpointerup: ((PointerEvent) -> dynamic)?
onprogress
open var onprogress: ((ProgressEvent) -> dynamic)?
onratechange
open var onratechange: ((Event) -> dynamic)?
ontimeupdate
open var ontimeupdate: ((Event) -> dynamic)?
onvolumechange
open var onvolumechange: ((Event) -> dynamic)?
onwheel
open var onwheel: ((WheelEvent) -> dynamic)?
previousElementSibling
open val previousElementSibling: Element?
style
open val style: CSSStyleDeclaration
Functions
after
open fun after(vararg nodes: dynamic)
append
open fun append(vararg nodes: dynamic)
before
open fun before(vararg nodes: dynamic)
convertPointFromNode
open fun convertPointFromNode(
point: DOMPointInit,
from: dynamic,
options: ConvertCoordinateOptions
): DOMPoint
convertQuadFromNode
open fun convertQuadFromNode(
quad: dynamic,
from: dynamic,
options: ConvertCoordinateOptions
): DOMQuad
convertRectFromNode
open fun convertRectFromNode(
rect: DOMRectReadOnly,
from: dynamic,
options: ConvertCoordinateOptions
): DOMQuad
getBoxQuads
open fun getBoxQuads(options: BoxQuadOptions): Array<DOMQuad>
prepend
open fun prepend(vararg nodes: dynamic)
querySelector
open fun querySelector(selectors: String): Element?
querySelectorAll
open fun querySelectorAll(selectors: String): NodeList
remove
open fun remove()
replaceWith
open fun replaceWith(vararg nodes: dynamic)
Companion Object Properties
ATTRIBUTE_NODE
val ATTRIBUTE_NODE: Short
CDATA_SECTION_NODE
val CDATA_SECTION_NODE: Short
COMMENT_NODE
val COMMENT_NODE: Short
DOCUMENT_FRAGMENT_NODE
val DOCUMENT_FRAGMENT_NODE: Short
DOCUMENT_NODE
val DOCUMENT_NODE: Short
DOCUMENT_POSITION_CONTAINED_BY
val DOCUMENT_POSITION_CONTAINED_BY: Short
DOCUMENT_POSITION_CONTAINS
val DOCUMENT_POSITION_CONTAINS: Short
DOCUMENT_POSITION_DISCONNECTED
val DOCUMENT_POSITION_DISCONNECTED: Short
DOCUMENT_POSITION_FOLLOWING
val DOCUMENT_POSITION_FOLLOWING: Short
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
val DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: Short
DOCUMENT_POSITION_PRECEDING
val DOCUMENT_POSITION_PRECEDING: Short
DOCUMENT_TYPE_NODE
val DOCUMENT_TYPE_NODE: Short
ELEMENT_NODE
val ELEMENT_NODE: Short
ENTITY_NODE
val ENTITY_NODE: Short
ENTITY_REFERENCE_NODE
val ENTITY_REFERENCE_NODE: Short
NOTATION_NODE
val NOTATION_NODE: Short
PROCESSING_INSTRUCTION_NODE
val PROCESSING_INSTRUCTION_NODE: Short
TEXT_NODE
val TEXT_NODE: Short
Extension Properties
Extension Functions
addClass
Adds CSS class to element. Has no effect if all specified classes are already in class attribute of the element
fun Element.addClass(vararg cssClasses: String): Boolean
hasClass
Returns true if the element has the given CSS class style in its 'class' attribute
fun Element.hasClass(cssClass: String): Boolean
removeClass
Removes all cssClasses from element. Has no effect if all specified classes are missing in class attribute of the element
fun Element.removeClass(vararg cssClasses: String): Boolean