W3cubDocs

/Kotlin

appendElement

Platform and version requirements: JS (1.1)
@DeprecatedSinceKotlin("1.4") inline fun Element.appendElement(
    name: String, 
    noinline init: Element.() -> Unit
): Element
Deprecated: This API is moved to another package, use 'kotlinx.dom.appendElement' instead.

Appends a newly created element with the specified name to this element.

The element is initialized with the specified init function.

© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.dom/append-element.html