SimpleRoute

kreuzberg.extras.Route.SimpleRoute
case class SimpleRoute(path: String, title: String, component: Component) extends EagerRoute

Simple Route without parameters.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait EagerRoute
trait Route
class Object
trait Matchable
class Any
Show all

Members list

Type members

Types

override type State = Unit

Value members

Concrete methods

override def component(state: Unit): Component

Assembles a component for a given path.

Assembles a component for a given path.

Attributes

Definition Classes
override def title(state: Unit): String

Returns a title for that path.

Returns a title for that path.

Attributes

Definition Classes

Inherited methods

override def canHandle(resource: UrlResource): Boolean

Returns true if the route can handle a given path.

Returns true if the route can handle a given path.

Attributes

Definition Classes
Inherited from:
EagerRoute

Attributes

Inherited from:
EagerRoute
override def preTitle(resource: UrlResource): String

Title displayed while loading.

Title displayed while loading.

Attributes

Definition Classes
Inherited from:
EagerRoute
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
override def target(resource: UrlResource)(using AssemblerContext): Effect[RoutingTarget]

Execute the route, can load lazy.

Execute the route, can load lazy.

Attributes

Definition Classes
Inherited from:
EagerRoute

Concrete fields

val pathCodec: PathCodec[Unit]