EmptyComponent

kreuzberg.extras.SimpleRouter.EmptyComponent
case object EmptyComponent extends SimpleComponentBase

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class SimpleComponentBase
trait Component
trait Identified
trait SimpleContextDsl
trait ComponentDsl
trait ContextDsl
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Inherited types

type DomElement <: ScalaJsElement

Data type of JS Representation.

Data type of JS Representation.

Attributes

Inherited from:
Component
type MirroredElemLabels = EmptyTuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Singleton
type MirroredElemTypes = EmptyTuple

Attributes

Inherited from:
Singleton
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
type MirroredMonoType = Singleton.this.type

The mirrored *-type

The mirrored *-type

Attributes

Inherited from:
Singleton
type MirroredType = Singleton.this.type

Attributes

Inherited from:
Singleton

Value members

Concrete methods

override def assemble(using c: SimpleContext): Html

Attributes

Definition Classes
SimpleComponentBase

Inherited methods

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

Add an event binding.

Add an event binding.

Attributes

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

Add a child service.

Add a child service.

Attributes

Inherited from:
SimpleContextDsl
final override def assemble(using context: AssemblerContext): Assembly

Assemble the object.

Assemble the object.

Attributes

Definition Classes
SimpleComponentBase -> Component
Inherited from:
SimpleComponentBase
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
def fromProduct(p: Product): MirroredMonoType

Create a new instance of type T with elements taken from product p.

Create a new instance of type T with elements taken from product p.

Attributes

Inherited from:
Singleton
protected def jsEvent(name: String, preventDefault: Boolean, capture: Boolean): JsEvent[ScalaJsEvent]

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
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
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
protected def read[M](model: Subscribeable[M])(using c: AssemblerContext): M

Read the value of a model from an AssemblerContext

Read the value of a model from an AssemblerContext

Attributes

Inherited from:
ContextDsl
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 from:
SimpleContextDsl
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 from:
Component
protected def windowEvent(name: String, preventDefault: Boolean, capture: Boolean): JsEvent[ScalaJsEvent]

Declare a Window JS Event.

Declare a Window JS Event.

Attributes

Inherited from:
ComponentDsl

Inherited fields

final val id: Identifier

Identifier of the component.

Identifier of the component.

Attributes

Inherited from:
Component

Implicits

Inherited implicits

implicit protected def from[E](channel: Channel[E]): ChannelSource[E]

Implicitly convert Channels into event sources.

Implicitly convert Channels into event sources.

Attributes

Inherited from:
ComponentDsl
implicit protected def from[E](jsEvent: JsEvent[E]): Js[E]

Implicitly convert JS Events into event sources.

Implicitly convert JS Events into event sources.

Attributes

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

Attributes

Inherited from:
ComponentDsl