Web Component
Implement this class to build a WebComponent.
Constructors
WebComponent
Link copied to clipboard
Functions
adoptedCallback
Link copied to clipboard
attributeChanges
Link copied to clipboard
connectedCallback
Link copied to clipboard
disconnectedCallback
Link copied to clipboard
init
Link copied to clipboard
abstract fun TagContext.init(element: HTMLElement, shadowRoot: ShadowRoot): Tag<T>
Content copied to clipboard
initializeInternal
Link copied to clipboard
fun initializeInternal(element: HTMLElement, shadowRoot: ShadowRoot): Tag<T>
Content copied to clipboard
linkStylesheet
Link copied to clipboard
setStylesheet
Link copied to clipboard
Properties
attributeChangedCallback
Link copied to clipboard
lateinit var attributeChangedCallback: (name: String, value: String) -> Unit
Content copied to clipboard
this callback is used, when building the component in native-js (since ES2015-classes are not supported by Kotlin/JS by now)
attributeChanges
Link copied to clipboard
a Flow of all changes made to observed attributes.