Component

kreuzberg.Component
trait Component extends Identified

The base for all UI components.

In practice you should use ComponentBase or SimpleComponentBase

Attributes

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

Members list

Type members

Types

Data type of JS Representation.

Data type of JS Representation.

Attributes

Value members

Abstract methods

def assemble(using context: AssemblerContext): Assembly

Assemble the object.

Assemble the object.

Attributes

Concrete methods

def update(before: ModelValueProvider)(using context: AssemblerContext): UpdateResult

Update the component into a new state. By default components are re-rendered.

Update the component into a new state. By default components are re-rendered.

Overriding this method can improve performance, if a component generates large sub-trees and we do not want to rebuild everything (e.g. List-Components).

Attributes

Inherited methods

def comment: String

Comment, which will probably built into into a tree. Can be disabled by returning ""

Comment, which will probably built into into a tree. Can be disabled by returning ""

Attributes

Inherited from:
Identified

Concrete fields

final val id: Identifier

Identifier of the component.

Identifier of the component.

Attributes