Packages

class MockRouterCtl[P] extends RouterCtl[P]

Mock RouterCtl that does nothing but record events.

Call events() to inspect recorded events, and clear() to clear them.

Linear Supertypes
RouterCtl[P], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MockRouterCtl
  2. RouterCtl
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new MockRouterCtl(baseUrl: BaseUrl, pageToPath: (P) => Path)

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. var _events: Vector[Event[P]]
    Attributes
    protected
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. val baseUrl: BaseUrl
    Definition Classes
    MockRouterCtl → RouterCtl
  7. val byPath: RouterCtl[Path]
    Definition Classes
    MockRouterCtl → RouterCtl
  8. def clear(): Unit
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  10. final def contramap[B](f: (B) => P): RouterCtl[B]
    Definition Classes
    RouterCtl
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. def events(): Vector[Event[P]]
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def link(route: P): vdom.html_<^.VdomTagOf[Anchor]
    Definition Classes
    RouterCtl
  18. final def narrow[B <: P]: RouterCtl[B]
    Definition Classes
    RouterCtl
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. final def onLinkClick(route: P): (react.ReactMouseEvent) => CallbackOption[Unit]
    Definition Classes
    RouterCtl
  23. final def onSet(f: (Callback) => Callback): RouterCtl[P]
    Definition Classes
    RouterCtl
  24. final def onSet(f: (P, Callback) => Callback): RouterCtl[P]
    Definition Classes
    RouterCtl
  25. final def onSetRun(f: Callback): RouterCtl[P]
    Definition Classes
    RouterCtl
  26. def pathFor(p: P): Path
    Definition Classes
    MockRouterCtl → RouterCtl
  27. def refresh: Callback
    Definition Classes
    MockRouterCtl → RouterCtl
  28. def set(p: P, v: SetRouteVia): Callback
    Definition Classes
    MockRouterCtl → RouterCtl
  29. final def set(route: P): Callback
    Definition Classes
    RouterCtl
  30. final def setEH(route: P): (react.ReactEvent) => Callback
    Definition Classes
    RouterCtl
  31. final def setOnClick(route: P): vdom.html_<^.TagMod
    Definition Classes
    RouterCtl
  32. final def setOnLinkClick(route: P): vdom.html_<^.TagMod
    Definition Classes
    RouterCtl
  33. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  34. def toString(): String
    Definition Classes
    AnyRef → Any
  35. final def urlFor(route: P): AbsUrl
    Definition Classes
    RouterCtl
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  38. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated
  2. final def link(route: P, callback: Callback): vdom.html_<^.VdomTagOf[Anchor]
    Definition Classes
    RouterCtl
    Annotations
    @deprecated
    Deprecated

    (Since version forever) Use .onSetRun(callback).link(route)

  3. final def setOnClick(route: P, callback: Callback): vdom.html_<^.TagMod
    Definition Classes
    RouterCtl
    Annotations
    @deprecated
    Deprecated

    (Since version forever) Use .onSetRun(callback).setOnClick(route)

  4. final def setOnLinkClick(route: P, callback: Callback): vdom.html_<^.TagMod
    Definition Classes
    RouterCtl
    Annotations
    @deprecated
    Deprecated

    (Since version forever) Use .onSetRun(callback).setOnLinkClick(route)

Inherited from RouterCtl[P]

Inherited from AnyRef

Inherited from Any

Ungrouped