WebComponent

trait WebComponent extends Component

A [[Component]] wrapped in a Custom Element. Custom Elements have useful lifecycle callbacks and can attach shadow-dom.

See also:
Companion:
object
trait Component
class Object
trait Matchable
class Any

Value members

Concrete methods

def connectedCallback(): Unit

Triggered whenever this WebComponent is appended into a document-connected element. WebComponent ensures connectedCallback is never triggered when the element is not connected (a non-obvious behavior of regular custom elements).

Triggered whenever this WebComponent is appended into a document-connected element. WebComponent ensures connectedCallback is never triggered when the element is not connected (a non-obvious behavior of regular custom elements).

See also:

Invoked each time the custom element is disconnected from the document's DOM.

Invoked each time the custom element is disconnected from the document's DOM.

See also:
override def render(using parentElement: Element, parentBinding: Binding[_]): Unit
Definition Classes

Whether this WebComponent should use ShadowDom and/or scoped styles. Defaults to Disabled.

Whether this WebComponent should use ShadowDom and/or scoped styles. Defaults to Disabled.

Shadow Dom means that means ids, class names, and selectors can be used without fear of conflicts.

See also:

Inherited methods

Defines the component's template.

Defines the component's template.

Inherited from:
Component