init

abstract fun RenderContext.init(element: HTMLElement, shadowRoot: ShadowRoot): HtmlTag<E>

this method builds the content of the WebComponent that will be added to it's shadow-DOM.

Return

a HtmlTag representing the content of the component

Parameters

element

the newly created element, when the component is used

shadowRoot

the shadowRoot the content will be added to