Route

frontroute.Route
See theRoute companion object
trait Route extends (Location, RoutingState, RoutingState) => RouteResult with Modifier[HtmlElement]

Attributes

Companion:
object
Graph
Supertypes
trait Modifier[HtmlElement]
trait (Location, RoutingState, RoutingState) => RouteResult
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def &(magnet: ConjunctionMagnet[L]): Out
Implicitly added by toDirective
override def apply(element: HtmlElement): Unit

You can count on this method being a no-op in your libraries and end user code.

You can count on this method being a no-op in your libraries and end user code.

The reason this method is not abstract is to avoid broken SAM sugar in case of meta modifiers. See https://github.com/raquo/scala-dom-types/issues/27

Attributes

Definition Classes
Modifier
def collect[R](f: PartialFunction[L, R]): Directive[R]
Implicitly added by toDirective
def emap[R](f: L => Either[Any, R]): Directive[R]
Implicitly added by toDirective
def filter(predicate: L => Boolean): Directive[L]
Implicitly added by toDirective
def flatMap[R](next: L => Directive[R]): Directive[R]
Implicitly added by toDirective
def map[R](f: L => R): Directive[R]
Implicitly added by toDirective
def mapTo[R](otherValue: => R): Directive[R]
Implicitly added by toDirective
def none[R]: Directive[Option[R]]
Implicitly added by toDirective
def opt: Directive[Option[L]]
Implicitly added by toDirective
def signal: Directive[StrictSignal[L]]
Implicitly added by toDirective
def some: Directive[Option[L]]
Implicitly added by toDirective
def tap(body: L => Unit): Directive[L]
Implicitly added by toDirective
def |(other: Directive[L]): Directive[L]
Implicitly added by toDirective

Inherited methods

def apply(v1: Location, v2: RoutingState, v3: RoutingState): R

Attributes

Inherited from:
Function3
def curried: T1 => T2 => T3 => R

Attributes

Inherited from:
Function3
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns:

a string representation of the object.

Definition Classes
Function3 -> Any
Inherited from:
Function3
def tupled: ((T1, T2, T3)) => R

Attributes

Inherited from:
Function3

Concrete fields

val tapply: (L => Route) => Route
Implicitly added by toDirective