init

abstract fun TagContext.init(element: HTMLElement, shadowRoot: ShadowRoot): Tag<T>

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

Return

a Tag 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