case class RouterWithPropsConfig[Page, Props](rules: RoutingRules[Page], renderFn: (RouterCtl[Page], ResolutionWithProps[Page, Props]) ⇒ (Props) ⇒ VdomElement, postRenderFn: (Option[Page], Page, Props) ⇒ Callback, logger: Logger) extends Product with Serializable
- Alphabetic
- By Inheritance
- RouterWithPropsConfig
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new RouterWithPropsConfig(rules: RoutingRules[Page], renderFn: (RouterCtl[Page], ResolutionWithProps[Page, Props]) ⇒ (Props) ⇒ VdomElement, postRenderFn: (Option[Page], Page, Props) ⇒ Callback, logger: Logger)
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
detectErrors(pages: Page*): CallbackTo[Vector[String]]
Check specified pages for possible route config errors, and returns any detected.
Check specified pages for possible route config errors, and returns any detected.
Note: Requires that
Page#equals()be sensible. Note: Ifelidable.ASSERTIONis elided, this always returns an empty collection.- returns
Error messages (or an empty collection if no errors are detected).
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def logToConsole: RouterWithPropsConfig[Page, Props]
- def logWith(l: Logger): RouterWithPropsConfig[Page, Props]
- val logger: Logger
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
onPostRender(f: (Option[Page], Page) ⇒ Callback): RouterWithPropsConfig[Page, Props]
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.
-
def
onPostRenderP(f: (Option[Page], Page, Props) ⇒ Callback): RouterWithPropsConfig[Page, Props]
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, the current page that just rendered and props, return a callback.
- val postRenderFn: (Option[Page], Page, Props) ⇒ Callback
- val renderFn: (RouterCtl[Page], ResolutionWithProps[Page, Props]) ⇒ (Props) ⇒ VdomElement
-
def
renderWith(f: (RouterCtl[Page], ResolutionWithProps[Page, Props]) ⇒ VdomElement): RouterWithPropsConfig[Page, Props]
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
renderWithP(f: (RouterCtl[Page], ResolutionWithProps[Page, Props]) ⇒ (Props) ⇒ VdomElement): RouterWithPropsConfig[Page, Props]
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.
- val rules: RoutingRules[Page]
-
def
setPostRender(f: (Option[Page], Page) ⇒ Callback): RouterWithPropsConfig[Page, Props]
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
setPostRenderP(f: (Option[Page], Page, Props) ⇒ Callback): RouterWithPropsConfig[Page, Props]
Specify (entirely) what to do after the router renders.
Specify (entirely) what to do after the router renders.
- f
Given the previous page, the current page that just rendered and props, return a callback.
-
def
setTitle(f: (Page) ⇒ String): RouterWithPropsConfig[Page, Props]
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]): RouterWithPropsConfig[Page, Props]
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.
-
def
setTitleOptionP(f: (Page, Props) ⇒ Option[String]): RouterWithPropsConfig[Page, Props]
Change the document title after the router renders.
Change the document title after the router renders.
- f
Given the current page that just rendered and props, return potential new title.
-
def
setTitleP(f: (Page, Props) ⇒ String): RouterWithPropsConfig[Page, Props]
Change the document title after the router renders.
Change the document title after the router renders.
- f
Given the current page that just rendered and props, return a new title.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
verify(page1: Page, pages: Page*): RouterWithPropsConfig[Page, Props]
Asserts that the page arguments provided, don't encounter any route config errors.
Asserts that the page arguments provided, don't encounter any route config errors.
If any errors are detected, the Router will be replaced with a new dummy router that displays the error messages.
If you want direct, programmatic access to the errors themselves, use detectErrors() instead.
Note: Requires that
Page#equals()be sensible. Note: Ifelidable.ASSERTIONis elided, this always returnsthis.- returns
In the event that errors are detected, a new RouterConfig that displays them; else this unmodified.
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.