Package dev.fritz2.webcomponents

Types

WebComponent
Link copied to clipboard
js
@ExperimentalCoroutinesApi()
abstract class WebComponent<T : Element>(observeAttributes: Boolean)
Implement this class to build a WebComponent.

Functions

registerWebComponent
Link copied to clipboard
js
fun <X : Element, T : WebComponent<X>> registerWebComponent(localName: String, constructor: KClass<T>, vararg observedAttributes: String)
registers a WebComponent at the browser's registry so you can use it in fritz2 by custom-Tag or in HTML.