SimpleContextDsl
kreuzberg.SimpleContextDsl
trait SimpleContextDsl extends ComponentDsl
Helpers for building imperative Components using SimpleContext
Attributes
- Graph
-
- Supertypes
- Known subtypes
-
class SimpleComponentBase
- Self type
Members list
Value members
Concrete methods
Add an event binding.
Add an event binding.
Attributes
protected def addService(service: HeadlessComponent, other: HeadlessComponent*)(using c: SimpleContext): Unit
Add a child service.
Add a child service.
Attributes
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[ScalaJsEvent]
Declare a Javascript event.
protected def jsProperty[T](getter: <none> => T, setter: (<none>, T) => Unit): JsProperty[DomElement, T]
Declares a js runtime property.
Declares a js runtime state.
protected def provide[T : ServiceNameProvider](implicit evidence$1: ServiceNameProvider[T], c: ServiceRepository): T
Retrieves something from a ServiceRepository (usually an AssemblerContext)
Retrieves something from a ServiceRepository (usually an AssemblerContext)
Attributes
- Inherited from:
- ContextDsl
Read the value of a model from an AssemblerContext
protected def windowEvent(name: String, preventDefault: Boolean, capture: Boolean): JsEvent[ScalaJsEvent]
Declare a Window JS Event.
Implicits
Inherited implicits
Implicitly convert Channels into event sources.
Implicitly convert JS Events into event sources.
Attributes
- Inherited from:
- ComponentDsl
In this article