japgolly.scalajs.react.extra

router2

package router2

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

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. implicit final class ReactRouteCmdExt[P, A] extends AnyVal

  7. implicit final class ReactRouteIOExt[A] extends AnyVal

  8. implicit final class ReactRouteProgExt[P, A] extends AnyVal

  9. sealed trait Redirect[P] extends Action[P]

  10. final case class RedirectToPage[P](page: P, method: Method) extends Redirect[P] with Product with Serializable

  11. final case class RedirectToPath[P](path: Path, method: Method) extends Redirect[P] with Product with Serializable

  12. final case class Renderer[P](f: (RouterCtl[P]) ⇒ ReactElement) extends Action[P] with Product with Serializable

  13. final case class Resolution[P](page: P, render: () ⇒ ReactElement) 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.

    render

    The render function provided by the rules and logic in RouterConfig.

  14. sealed trait RouteCmd[A] extends AnyRef

  15. type RouteProg[A] = Free[[x]Coyoneda[RouteCmd, x], A]

    Free monad & free functor over route commands.

  16. type Router[P] = ConstProps[Unit, Resolution[P], Any, TopNode]

  17. case class RouterConfig[Page](parse: (Path) ⇒ Parsed[Page], path: (Page) ⇒ Path, action: (Page) ⇒ Action[Page], renderFn: (RouterCtl[Page], Resolution[Page]) ⇒ ReactElement, postRenderFn: (Option[Page], Page) ⇒ IO[Unit], logger: Logger) extends Product with Serializable

  18. final class RouterConfigDsl[Page] extends AnyRef

    DSL for creating RouterConfig.

    DSL for creating RouterConfig.

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

  19. abstract class RouterCtl[A] extends AnyRef

    Router controller.

    Router controller. A client API to the router.

    A

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

  20. final class RouterLogic[Page] extends Broadcaster[Unit]

    Performs all routing logic.

    Performs all routing logic.

    Page

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

  21. type RouterM[P] = ReactComponentM[Unit, Resolution[P], Any, TopNode]

  22. type RouterU[P] = ReactComponentU[Unit, Resolution[P], Any, TopNode]

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 extends Serializable

  8. object RouterConfigDsl

  9. object RouterCtl

  10. object StaticDsl

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

  11. implicit def reactAutoLiftRouteProg[A](c: RouteCmd[A]): RouteProg[A]

Inherited from AnyRef

Inherited from Any

Ungrouped