CustomElementRegistry

abstract external class CustomElementRegistry

Exposes the JavaScript CustomElementRegistry to Kotlin

Constructors

CustomElementRegistry
Link copied to clipboard
fun CustomElementRegistry()

Functions

define
Link copied to clipboard
fun define(name: String, constructor: () -> dynamic, options: ElementDefinitionOptions = definedExternally)
get
Link copied to clipboard
fun get(name: String): Any?
whenDefined
Link copied to clipboard
fun whenDefined(name: String): Promise<Unit>