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
- Alphabetic
- By Inheritance
- RouterConfig
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val action: (Path, Page) ⇒ Action[Page]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
detectErrors(pages: Page*): Vector[String]
Check specified pages for possible route config errors.
Check specified pages for possible route config errors.
Note: Requires that
Page#equals()be sensible. -
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def logToConsole: RouterConfig[Page]
- def logWith(l: Logger): RouterConfig[Page]
- val logger: Logger
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
onPostRender(f: (Option[Page], Page) ⇒ Callback): 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.
- val parse: (Path) ⇒ Parsed[Page]
- val path: (Page) ⇒ Path
- val postRenderFn: (Option[Page], Page) ⇒ Callback
- val renderFn: (RouterCtl[Page], Resolution[Page]) ⇒ VdomElement
-
def
renderWith(f: (RouterCtl[Page], Resolution[Page]) ⇒ VdomElement): 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.
-
def
setPostRender(f: (Option[Page], Page) ⇒ Callback): 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.
-
def
setTitle(f: (Page) ⇒ String): RouterConfig[Page]
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.
-
def
setTitleOption(f: (Page) ⇒ Option[String]): RouterConfig[Page]
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.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
verify(page1: Page, pages: Page*): RouterConfig[Page]
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. -
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )