ParentNode

external interface ParentNode (source)

Platform and version requirements: JS

Exposes the JavaScript ParentNode to Kotlin

Properties

childElementCount

abstract val childElementCount: Int

children

abstract val children: HTMLCollection

firstElementChild

abstract val firstElementChild: Element?

lastElementChild

abstract val lastElementChild: Element?

Functions

append

abstract fun append(vararg nodes: dynamic)

prepend

abstract fun prepend(vararg nodes: dynamic)

querySelector

abstract fun querySelector(selectors: String): Element?

querySelectorAll

abstract fun querySelectorAll(selectors: String): NodeList

Inherited Functions

equals

open operator fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one. Implementations must fulfil the following requirements:

hashCode

open fun hashCode(): Int

Returns a hash code value for the object. The general contract of hashCode is:

toString

open fun toString(): String

Returns a string representation of the object.

Inheritors

Document

open external class Document : 
    Node,
    GlobalEventHandlers,
    DocumentAndElementEventHandlers,
    NonElementParentNode,
    DocumentOrShadowRoot,
    ParentNode,
    GeometryUtils

Exposes the JavaScript Document to Kotlin

DocumentFragment

open external class DocumentFragment : 
    Node,
    NonElementParentNode,
    ParentNode

Exposes the JavaScript DocumentFragment to Kotlin

Element

abstract external class Element : 
    Node,
    ParentNode,
    NonDocumentTypeChildNode,
    ChildNode,
    Slotable,
    GeometryUtils,
    UnionElementOrProcessingInstruction,
    UnionElementOrHTMLCollection,
    UnionElementOrRadioNodeList,
    UnionElementOrMouseEvent

Exposes the JavaScript Element to Kotlin