DependentRoute

kreuzberg.extras.Route.DependentRoute
case class DependentRoute[S](pathCodec: PathCodec[S], fn: S => Component, titleFn: S => String) extends EagerRoute

A Route whose target depends on a value.

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 = S

Value members

Concrete methods

override def component(state: S): Component

Assembles a component for a given path.

Assembles a component for a given path.

Attributes

Definition Classes
override def title(state: S): 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