Packages

package router

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. router
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final case class AbsUrl(value: String) extends PathLike[AbsUrl] with Product with Serializable

    An absolute URL.

  2. sealed trait Action[P] extends Product with Serializable
  3. final case class BaseUrl(value: String) extends PathLike[BaseUrl] with Product with Serializable

    The prefix of all routes on a page.

    The prefix of all routes on a page.

    The router expects this to be a full URL. Examples: BaseUrl("http://www.blah.com/hello"), BaseUrl.fromWindowOrigin / "hello".

  4. final case class Path(value: String) extends PathLike[Path] with Product with Serializable

    The portion of the URL after the BaseUrl.

  5. abstract class PathLike[Self <: PathLike[Self]] extends AnyRef
  6. sealed trait Redirect[P] extends Action[P]
  7. final case class RedirectToPage[P](page: P, via: SetRouteVia) extends Redirect[P] with Product with Serializable
  8. final case class RedirectToPath[P](path: Path, via: SetRouteVia) extends Redirect[P] with Product with Serializable
  9. final case class Renderer[P, Props](f: (RouterCtl[P]) => (Props) => VdomElement) extends Action[P] with Product with Serializable
  10. type Resolution[P] = ResolutionWithProps[P, Unit]
  11. final case class ResolutionWithProps[P, Props](page: P, renderP: (Props) => VdomElement) extends Product with Serializable

    Result of the router resolving a URL and reaching a conclusion about what to render.

    Result of the router resolving a URL and reaching a conclusion about what to render.

    page

    Data representation (or command) of what will be drawn.

  12. sealed abstract class RouteCmd[A] extends AnyRef
  13. type Router[P] = component.Js.ComponentWithRoot[Unit, Nullary, Unmounted[Unit, Resolution[P], Backend], Box[Unit], Nullary, JsUnmounted[Unit, Resolution[P], Backend]]
  14. type RouterConfig[P] = RouterWithPropsConfig[P, Unit]
  15. final class RouterConfigDsl[Page, Props] extends AnyRef

    DSL for creating RouterConfig.

    DSL for creating RouterConfig.

    Instead creating an instance of this yourself, use RouterConfigDsl.apply.

  16. abstract class RouterCtl[Route] extends AnyRef

    Router controller.

    Router controller. A client API to the router.

    Route

    A data type that indicates a route that can be navigated to.

  17. final class RouterLogic[Page, Props] extends Broadcaster[Unit]

    Performs all routing logic.

    Performs all routing logic.

    Page

    Routing rules context. Prevents different routing rule sets being mixed up.

  18. type RouterM[P] = MountedWithRoot[Id, Unit, Resolution[P], Backend, Unit, Resolution[P]]
  19. type RouterU[P] = UnmountedWithRoot[Unit, MountedImpure[Unit, Resolution[P], Backend], Box[Unit], JsMounted[Unit, Resolution[P], Backend]]
  20. type RouterWithProps[P, Props] = component.Js.ComponentWithRoot[Props, Props, Unmounted[Props, ResolutionWithProps[P, Props], Backend], Box[Props], Props, JsUnmounted[Props, ResolutionWithProps[P, Props], Backend]]
  21. case class RouterWithPropsConfig[Page, Props](rules: RoutingRules[Page], renderFn: (RouterCtl[Page], ResolutionWithProps[Page, Props]) => (Props) => VdomElement, postRenderFn: (Option[Page], Page, Props) => Callback, logger: Logger) extends Product with Serializable
  22. type RouterWithPropsM[P, Props] = MountedWithRoot[Id, Props, ResolutionWithProps[P, Props], Backend, Props, ResolutionWithProps[P, Props]]
  23. type RouterWithPropsU[P, Props] = UnmountedWithRoot[Props, MountedImpure[Props, ResolutionWithProps[P, Props], Backend], Box[Props], JsMounted[Props, ResolutionWithProps[P, Props], Backend]]
  24. sealed trait RoutingRule[Page, Props] extends AnyRef

    A single routing rule.

    A single routing rule. Intended to be composed with other RoutingRules. When all rules are composed, this is turned into a RoutingRule.WithFallback instance.

    Page

    The type of legal pages. Most commonly, a sealed trait that you've created, where all subclasses represent a page in your SPA.

  25. final case class RoutingRules[Page](parseMulti: (Path) => List[StaticOrDynamic[Option[Parsed[Page]]]], path: (Page) => Path, actionMulti: (Path, Page) => List[StaticOrDynamic[Option[Action[Page]]]], fallbackAction: (Path, Page) => Action[Page], whenNotFound: (Path) => CallbackTo[Parsed[Page]]) extends Product with Serializable

    A complete set of routing rules that allow the router to handle every all routes without further input.

    A complete set of routing rules that allow the router to handle every all routes without further input.

    Page

    The type of legal pages. Most commonly, a sealed trait that you've created, where all subclasses represent a page in your SPA.

  26. sealed trait SetRouteVia extends AnyRef

    The means by which the location should be set to a given URL.

  27. final case class StaticOrDynamic[A](value: Either[CallbackTo[A], A]) extends Product with Serializable

Value Members

  1. object AbsUrl extends Serializable
  2. object BaseUrl extends Serializable
  3. object Path extends Serializable
  4. object Redirect extends Serializable
  5. object RouteCmd
  6. object Router
  7. object RouterConfig
  8. object RouterConfigDsl
  9. object RouterCtl
  10. object RouterWithProps
  11. object RouterWithPropsConfigDsl
  12. object RoutingRule
  13. object RoutingRules extends Serializable
  14. object SetRouteVia
  15. object StaticDsl

    This is not meant to be imported by library-users; RouterConfigDsl is the entire library-user-facing facade & DSL.

  16. object StaticOrDynamic extends Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped