Class/Object

japgolly.scalajs.react.extra.router

RouterConfig

Related Docs: object RouterConfig | package router

Permalink

case class RouterConfig[Page](parse: (Path) ⇒ Parsed[Page], path: (Page) ⇒ Path, action: (Path, Page) ⇒ Action[Page], renderFn: (RouterCtl[Page], Resolution[Page]) ⇒ VdomElement, postRenderFn: (Option[Page], Page) ⇒ Callback, 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
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RouterConfig(parse: (Path) ⇒ Parsed[Page], path: (Page) ⇒ Path, action: (Path, Page) ⇒ Action[Page], renderFn: (RouterCtl[Page], Resolution[Page]) ⇒ VdomElement, postRenderFn: (Option[Page], Page) ⇒ Callback, logger: Logger)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val action: (Path, Page) ⇒ Action[Page]

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

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

    Permalink

    Check specified pages for possible route config errors.

    Check specified pages for possible route config errors.

    Note: Requires that Page#equals() be sensible.

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

    Permalink
    Definition Classes
    AnyRef
  9. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    Any
  12. def logToConsole: RouterConfig[Page]

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

    Permalink
  14. val logger: Logger

    Permalink
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. def onPostRender(f: (Option[Page], Page) ⇒ Callback): RouterConfig[Page]

    Permalink

    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.

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

    Permalink
  20. val path: (Page) ⇒ Path

    Permalink
  21. val postRenderFn: (Option[Page], Page) ⇒ Callback

    Permalink
  22. val renderFn: (RouterCtl[Page], Resolution[Page]) ⇒ VdomElement

    Permalink
  23. def renderWith(f: (RouterCtl[Page], Resolution[Page]) ⇒ VdomElement): RouterConfig[Page]

    Permalink

    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.

  24. def setPostRender(f: (Option[Page], Page) ⇒ Callback): RouterConfig[Page]

    Permalink

    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.

  25. def setTitle(f: (Page) ⇒ String): RouterConfig[Page]

    Permalink

    Change the document title after the router renders.

    Change the document title after the router renders.

    f

    Given the current page that just rendered, return a new title.

  26. def setTitleOption(f: (Page) ⇒ Option[String]): RouterConfig[Page]

    Permalink

    Change the document title after the router renders.

    Change the document title after the router renders.

    f

    Given the current page that just rendered, return potential new title.

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

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

    Permalink

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

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

    Note: Requires that Page#equals() be sensible.

  29. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped