← Docs
kotlin-stdlib / kotlin.dom / createElement

createElement

JS
1.1
@DeprecatedSinceKotlin ( "1.4" , "1.6" ) inline fun Document . createElement (
name : String ,
noinline init : Element . ( ) -> Unit
) : Element

(source)
Deprecated: This API is moved to another package, use 'kotlinx.dom.createElement' instead.

Creates a new element with the specified name .

The element is initialized with the specified init function.

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .