japgolly.scalajs.react.extra.router

RoutingRules

trait RoutingRules extends AnyRef

DSL for specifying a set of routing rules.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RoutingRules
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. final type DynAction = (Path) ⇒ RouteAction[P]

  2. final class DynB[T] extends AnyRef

    Attributes
    protected
  3. case class DynamicRoute(route: DRouteFn) extends Product with Serializable

    An unregistered dynamic route.

    An unregistered dynamic route. Install via register().

    Attributes
    protected
  4. case class InterceptionR(loc: Loc, router: Router, element: ReactElement) extends Product with Serializable

    Attributes
    protected
  5. final type Loc = Location[P]

  6. final type P = RoutingRules.this.type

  7. final type RedirectTarget = \/[Path, Location[P]]

  8. final type Renderer = (router.Router[P]) ⇒ ReactElement

  9. final type Router = router.Router[P]

  10. case class StaticRoute[A <: RouteAction[P]](path: Path, action: A) extends Product with Serializable

    An unregistered static route.

    An unregistered static route. Install via register().

    Attributes
    protected

Abstract Value Members

  1. abstract val notFound: DynAction

    The catch-all response to unmatched routes.

    The catch-all response to unmatched routes.

    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. implicit final def componentP_renderer[S, B, T <: TopNode](c: ReqProps[Router, S, B, T]): Renderer

    Attributes
    protected
    Annotations
    @inline()
  7. implicit final def componentU_renderer[P, S, B, T <: TopNode](c: ConstProps[P, S, B, T]): Renderer

    Attributes
    protected
    Annotations
    @inline()
  8. final def dynLink[T](path: (T) ⇒ String): (T) ⇒ DynamicLocation[P]

    Generates paths for a dynamic route, which can then be passed to japgolly.scalajs.react.extra.router.Router to be turned into clickable links.

    Generates paths for a dynamic route, which can then be passed to japgolly.scalajs.react.extra.router.Router to be turned into clickable links.

    T

    The value of the dynamic portion of the route. Example: PersonId(123).

    path

    Example: "person/123"

    Attributes
    protected
  9. implicit final def element_renderer[A](a: A)(implicit arg0: (A) ⇒ ReactElement): Renderer

    Attributes
    protected
    Annotations
    @inline()
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. def interceptRender(i: InterceptionR): ReactElement

    Customise all renderable routes.

    Customise all renderable routes.

    Attributes
    protected
  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. implicit final def loc_redirectable(a: Loc): RedirectTarget

    Attributes
    protected
    Annotations
    @inline()
  18. final def location(path: String, render: Renderer): StaticRoute[Loc]

    Attributes
    protected
  19. final lazy val matchNumber: Regex

    case matchNumber(num) => num.toLong

    case matchNumber(num) => num.toLong

    Attributes
    protected
  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  23. def onRouteChange(a: (Loc) ⇒ Unit): Unit

    Perform an action when a new route is activated.

    Perform an action when a new route is activated.

    Attributes
    protected
  24. def onRouteChangeIO(a: (Loc) ⇒ IO[Unit]): Unit

    Perform an action when a new route is activated.

    Perform an action when a new route is activated.

    Attributes
    protected
  25. final def parser[T](pf: PartialFunction[String, T]): DynB[T]

    Parser for a dynamic path.

    Parser for a dynamic path. Example: "person/123"

    T

    The value of the dynamic portion of the path. Example: "123" or PersonId(123).

    Attributes
    protected
  26. implicit final def path_redirectable(p: Path): RedirectTarget

    Attributes
    protected
    Annotations
    @inline()
  27. final def redirect(to: Loc, method: Method): DynAction

    Attributes
    protected
  28. final def redirection(from: String, to: RedirectTarget, method: Method): StaticRoute[Redirect[P]]

    Attributes
    protected
  29. final def register(u: DynamicRoute): Unit

    Attributes
    protected
  30. final def register[A <: RouteAction[P]](u: StaticRoute[A]): A

    Attributes
    protected
  31. final def removeTrailingSlashes: DynamicRoute

    Registers a handle that uses a replace-state redirect to remove trailing slashes from unmatched route urls.

    Registers a handle that uses a replace-state redirect to remove trailing slashes from unmatched route urls.

    Attributes
    protected
  32. final def render(render: Renderer): DynAction

    Attributes
    protected
  33. final def rootLocation(r: Renderer): StaticRoute[Loc]

    Attributes
    protected
  34. final def router(base: BaseUrl, logger: Logger = nopLogger): Component[P]

  35. final def routingEngine(base: BaseUrl, logger: Logger = nopLogger): Router

  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  37. def toString(): String

    Definition Classes
    AnyRef → Any
  38. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped