ComponentBase

kreuzberg.ComponentBase

Simple base trait for Components.

Attributes

Graph
Supertypes
trait Component
trait Identified
trait ComponentDsl
trait ContextDsl
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited and Abstract types

type DomElement <: Element

Data type of JS Representation.

Data type of JS Representation.

Attributes

Inherited from:
Component

Value members

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
protected def jsEvent(name: String, preventDefault: Boolean, capture: Boolean): JsEvent

Declare a Javascript event.

Declare a Javascript event.

Attributes

Inherited from:
ComponentDsl
protected def jsProperty[T](getter: DomElement => T, setter: (DomElement, T) => Unit): JsProperty[DomElement, T]

Declares a js runtime property.

Declares a js runtime property.

Attributes

Inherited from:
ComponentDsl
protected def jsState[T](f: DomElement => T): JsRuntimeState[DomElement, T]

Declares a js runtime state.

Declares a js runtime state.

Attributes

Inherited from:
ComponentDsl
protected def provide[T : ServiceNameProvider]: T

Retrieves something from a ServiceRepository (usually an KreuzbergContext)

Retrieves something from a ServiceRepository (usually an KreuzbergContext)

Attributes

Inherited from:
ContextDsl
protected def read[M](model: Subscribeable[M]): M

Read the value of a model

Read the value of a model

Attributes

Inherited from:
ContextDsl
protected def schedule[T](f: () => Unit): Unit

Schedule some code.

Schedule some code.

Attributes

Inherited from:
Component

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 from:
Component
protected def windowEvent(name: String, preventDefault: Boolean, capture: Boolean): JsEvent

Declare a Window JS Event.

Declare a Window JS Event.

Attributes

Inherited from:
ComponentDsl

Inherited and Abstract methods

Assemble the object.

Assemble the object.

Attributes

Inherited from:
Component

Inherited fields

final val id: Identifier

Identifier of the component.

Identifier of the component.

Attributes

Inherited from:
Component

Implicits

Inherited implicits

implicit protected def ec: ExecutionContext

Attributes

Inherited from:
Component
implicit protected def htmlToAssemblyResult(in: Html): Assembly

Attributes

Inherited from:
ComponentDsl