ShadowRoot

Exposes the JavaScript ShadowRoot to Kotlin

Inheritors

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open val baseURI: String
Link copied to clipboard
open override val childElementCount: Int
Link copied to clipboard
Link copied to clipboard
open override val children: HTMLCollection
Link copied to clipboard
open val firstChild: Node?
Link copied to clipboard
open override val firstElementChild: Element?
Link copied to clipboard
open override val fullscreenElement: Element?
Link copied to clipboard
open val host: Element
Link copied to clipboard
Link copied to clipboard
open val lastChild: Node?
Link copied to clipboard
open override val lastElementChild: Element?
Link copied to clipboard
Link copied to clipboard
open val nextSibling: Node?
Link copied to clipboard
open val nodeName: String
Link copied to clipboard
open val nodeType: Short
Link copied to clipboard
open var nodeValue: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val parentNode: Node?
Link copied to clipboard
Link copied to clipboard
open var textContent: String?

Functions

Link copied to clipboard
fun addEventListener(type: String, callback: (Event) -> Unit?)
fun addEventListener(type: String, callback: EventListener?)
fun addEventListener(type: String, callback: (Event) -> Unit?, options: Boolean)
fun addEventListener(type: String, callback: (Event) -> Unit?, options: AddEventListenerOptions)
fun addEventListener(type: String, callback: EventListener?, options: Boolean)
Link copied to clipboard
open override fun append(vararg nodes: String)
open override fun append(vararg nodes: Node)
Link copied to clipboard
fun appendChild(node: Node): Node
Link copied to clipboard
fun Node.clear()

Removes all the children from this node.

Link copied to clipboard
fun cloneNode(deep: Boolean): Node
Link copied to clipboard
Link copied to clipboard
fun contains(other: Node?): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun getElementById(elementId: String): Element?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun insertBefore(node: Node, child: Node?): Node
Link copied to clipboard
Link copied to clipboard
fun isEqualNode(otherNode: Node?): Boolean
Link copied to clipboard
fun isSameNode(otherNode: Node?): Boolean
Link copied to clipboard
Link copied to clipboard
fun lookupPrefix(namespace: String?): String?
Link copied to clipboard
fun normalize()
Link copied to clipboard
open override fun prepend(vararg nodes: String)
open override fun prepend(vararg nodes: Node)
Link copied to clipboard
open override fun querySelector(selectors: String): Element?
Link copied to clipboard
open override fun querySelectorAll(selectors: String): NodeList
Link copied to clipboard
fun removeChild(child: Node): Node
Link copied to clipboard
fun removeEventListener(type: String, callback: (Event) -> Unit?)
fun removeEventListener(type: String, callback: (Event) -> Unit?, options: Boolean)
fun removeEventListener(type: String, callback: (Event) -> Unit?, options: EventListenerOptions)
fun removeEventListener(type: String, callback: EventListener?, options: Boolean)
Link copied to clipboard
fun replaceChild(node: Node, child: Node): Node