japgolly.scalajs.react.extra.router2

RouterLogic

Related Doc: package router2

final class RouterLogic[Page] extends Broadcaster[Unit]

Performs all routing logic.

Page

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

Linear Supertypes
Broadcaster[Unit], Listenable[Unit], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RouterLogic
  2. Broadcaster
  3. Listenable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RouterLogic(baseUrl: BaseUrl, cfg: RouterConfig[Page])

    baseUrl

    The prefix of all routes in a set.

Type Members

  1. type Action = router2.Action[Page]

  2. type Redirect = router2.Redirect[Page]

  3. type Renderer = router2.Renderer[Page]

  4. type Resolution = router2.Resolution[Page]

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. val baseUrl: BaseUrl

    The prefix of all routes in a set.

  6. def broadcast(a: Unit): Unit

    Attributes
    protected
    Definition Classes
    Broadcaster
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val ctl: RouterCtl[Page]

  9. val ctlByPath: RouterCtl[Path]

  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. implicit def impbaseurl: BaseUrl

    Attributes
    protected
    Annotations
    @inline()
  16. def interpret[A](r: RouteProg[A]): IO[A]

  17. val interpretCmd: ~>[RouteCmd, IO]

  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. final def listeners: List[(Unit) ⇒ Unit]

    Attributes
    protected
    Definition Classes
    Broadcaster
  20. def log(msg: ⇒ String): Log

    Attributes
    protected
    Annotations
    @inline()
  21. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  24. def parseUrl(url: AbsUrl): Option[Path]

  25. def redirect(r: Redirect): RouteProg[Resolution]

  26. def redirectCmd(p: Path, m: Method): RouteCmd[Unit]

  27. def redirectToPath(path: Path, method: Method): RouteProg[Resolution]

  28. def register(f: (Unit) ⇒ Unit): () ⇒ Unit

    Register a listener.

    Register a listener.

    f

    The listener. A procedure that receives data of type A.

    returns

    A procedure to unregister the given listener.

    Definition Classes
    BroadcasterListenable
  29. def render(r: Resolution): ReactElement

  30. def resolve(page: Page, action: Action): RouteProg[Resolution]

  31. def resolveAction(a: Action): \/[RouteProg[Resolution], Renderer]

  32. def setPath(path: Path): RouteProg[Unit]

  33. def syncToPath(path: Path): RouteProg[Resolution]

  34. def syncToUrl(url: AbsUrl): RouteProg[Resolution]

  35. val syncToWindowUrl: IO[Resolution]

  36. val syncToWindowUrlS: ReactST[IO, Resolution, Unit]

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

    Definition Classes
    AnyRef
  38. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. def wrongBase(wrongUrl: AbsUrl): RouteProg[Resolution]

Inherited from Broadcaster[Unit]

Inherited from Listenable[Unit]

Inherited from AnyRef

Inherited from Any

Ungrouped