Component

org.getshaka.shaka.Component
trait Component

A Shaka Component provides a template for some part of an application, as well as the means to render said template to the DOM.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait WebComponent

Members list

Value members

Abstract methods

def template: Frag

Defines the component's template.

Defines the component's template.

Attributes

Concrete methods

def render(using parentElement: Element, parentBinding: Binding[_]): Unit

Renders this Component's template. render should only be overriden when implementing new Component types. For example, [[WebComponent]] overrides render to wrap super.render in a Custom Element, allowing you to use shadow-dom and lifecycle callbacks.

Renders this Component's template. render should only be overriden when implementing new Component types. For example, [[WebComponent]] overrides render to wrap super.render in a Custom Element, allowing you to use shadow-dom and lifecycle callbacks.

Attributes