japgolly.scalajs.react.extra.router2

RouterConfig

Related Docs: object RouterConfig | package router2

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

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RouterConfig
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RouterConfig(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)

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. val action: (Page) ⇒ Action[Page]

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def detectErrors(pages: Page*): Vector[String]

    Check specified pages for possible route config errors.

  8. def detectErrorsE(pages: Page*)(implicit eq: Equal[Page]): Vector[String]

    Check specified pages for possible route config errors.

  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  13. def logToConsole: RouterConfig[Page]

  14. def logWith(l: Logger): RouterConfig[Page]

  15. val logger: Logger

  16. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  19. def onPostRender(f: (Option[Page], Page) ⇒ IO[Unit]): RouterConfig[Page]

    Add an procedure to be performed after the router renders.

    Add an procedure to be performed after the router renders.

    f

    Given the previous page and the current page that just rendered, return a callback.

  20. val parse: (Path) ⇒ Parsed[Page]

  21. val path: (Page) ⇒ Path

  22. val postRenderFn: (Option[Page], Page) ⇒ IO[Unit]

  23. val renderFn: (RouterCtl[Page], Resolution[Page]) ⇒ ReactElement

  24. def renderWith(f: (RouterCtl[Page], Resolution[Page]) ⇒ ReactElement): RouterConfig[Page]

    Specify how to render a page once it's resolved.

    Specify how to render a page once it's resolved. This function will be applied to all renderable pages.

  25. def setPostRender(f: (Option[Page], Page) ⇒ IO[Unit]): RouterConfig[Page]

    Specify (entirely) what to do after the router renders.

    Specify (entirely) what to do after the router renders.

    f

    Given the previous page and the current page that just rendered, return a callback.

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

    Definition Classes
    AnyRef
  27. def verify(page1: Page, pages: Page*): RouterConfig[Page]

    Verify that the page arguments provided, don't encounter any route config errors.

  28. def verifyE(page1: Page, pages: Page*)(implicit eq: Equal[Page]): RouterConfig[Page]

    Verify that the page arguments provided, don't encounter any route config errors.

  29. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped