SimpleRouter

kreuzberg.extras.SimpleRouter
See theSimpleRouter companion object
case class SimpleRouter(routes: Vector[Route], notFoundRoute: Route, titlePrefix: String) extends ComponentBase

A Simple router implementation.

Attributes

notFoundRoute

route to be called, if no route matches

routes

the different routes

titlePrefix

prefix to be added for titles

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait ComponentBase
trait Component
trait ComponentDsl
class Object
trait Matchable
class Any

Members list

Concise view

Type members

Inherited types

type DomElement <: ScalaJsElement

Data type of JS Representation.

Data type of JS Representation.

Attributes

Inherited from:
Component

Value members

Concrete methods

override def assemble(using context: AssemblerContext): Assembly

Assemble the object.

Assemble the object.

Attributes

Definition Classes
Component

Inherited methods

def comment: String

Comment, which will be built into the node. Can be disabled by returning ""

Comment, which will be built into the node. Can be disabled by returning ""

Attributes

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

Attributes

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

Attributes

Inherited from:
ComponentDsl
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 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 : Provider](implicit evidence$1: Provider[T], c: ServiceRepository): T

Attributes

Inherited from:
ComponentDsl
protected def read[M](model: Model[M])(using c: AssemblerContext): M

Attributes

Inherited from:
ComponentDsl
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 htmlToAssemblyResult(in: Html): Assembly

Attributes

Inherited from:
ComponentDsl