SimpleContextDsl

kreuzberg.SimpleContextDsl

Helpers for building imperative Components using SimpleContext

Attributes

Graph
Supertypes
trait ComponentDsl
trait ContextDsl
class Object
trait Matchable
class Any
Known subtypes
Self type

Members list

Value members

Concrete methods

protected def add(binding0: EventBinding[_], others: EventBinding[_]*)(using c: SimpleContext): Unit

Add an event binding.

Add an event binding.

Attributes

protected def addHandler[E](source: EventSource[E])(f: E => Unit)(using c: SimpleContext): Unit

Add an imperative handler.

Add an imperative handler.

Attributes

protected def addHandlerAny(source: EventSource[_])(f: => Unit)(using c: SimpleContext): Unit

Add an imperative handler (ignoring the argument)

Add an imperative handler (ignoring the argument)

Attributes

protected def addService(service: HeadlessComponent, other: HeadlessComponent*)(using c: SimpleContext): Unit

Add a child service.

Add a child service.

Attributes

protected def subscribe[M](model: Subscribeable[M])(using c: SimpleContext): M

Subscribe some model and read at the same time.

Subscribe some model and read at the same time.

Attributes

Inherited methods

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

Declare a Window JS Event.

Declare a Window JS Event.

Attributes

Inherited from:
ComponentDsl

Implicits

Inherited implicits

implicit protected def htmlToAssemblyResult(in: Html): Assembly

Attributes

Inherited from:
ComponentDsl