final class RouterConfigDsl[Page, Props] extends AnyRef

DSL for creating RouterConfig.

Instead creating an instance of this yourself, use RouterConfigDsl.apply.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RouterConfigDsl
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new RouterConfigDsl()

Type Members

  1. type Action = router.Action[Page]
  2. type Parsed = Either[router.Redirect[Page], Page]
  3. type Redirect = router.Redirect[Page]
  4. type Renderer = router.Renderer[Page, Props]
  5. type Rule = RoutingRule[Page, Props]
  6. type Rules = WithFallback[Page, Props]

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. implicit def _auto_notFound_from_parsed[A](a: A)(implicit ev: (A) => Parsed): (Path) => Parsed
  5. implicit def _auto_notFound_from_parsedF[A](f: (Path) => A)(implicit ev: (A) => Parsed): (Path) => Parsed
  6. implicit def _auto_pToAction_from_action(a: => Action): (Page) => Action
  7. implicit def _auto_parsedO_from_parsed[A](p: A)(implicit ev: (A) => Parsed): Option[Parsed]
  8. implicit def _auto_parsedO_from_parsedO[A](o: Option[A])(implicit ev: (A) => Parsed): Option[Parsed]
  9. implicit def _auto_parsed_from_page(p: Page): Parsed
  10. implicit def _auto_parsed_from_redirect(r: Redirect): Parsed
  11. implicit def _auto_pattern_from_regex(r: Regex): Pattern
  12. implicit def _auto_routeB_from_path(p: Path): RouteB[Unit]
  13. implicit def _auto_routeB_from_str(l: String): RouteB[Unit]
  14. implicit def _auto_routeParser_from_parsed[A](a: A)(implicit ev: (A) => Parsed): (Path) => Option[Parsed]
  15. implicit def _auto_routeParser_from_parsedF[A](f: (Path) => A)(implicit ev: (A) => Parsed): (Path) => Option[Parsed]
  16. implicit def _auto_routeParser_from_parsedFO[A](f: (Path) => Option[A])(implicit ev: (A) => Parsed): (Path) => Option[Parsed]
  17. implicit def _auto_routeParser_from_parsedO[A](o: Option[A])(implicit ev: (A) => Parsed): (Path) => Option[Parsed]
  18. implicit def _auto_route_from_routeB[A, R](r: R)(implicit ev: (R) => RouteB[A]): Route[A]
  19. implicit def _auto_rules_from_rulesB(r: Rule): Rules
  20. implicit def _auto_someAction[A <: Action](a: A): Option[A]
  21. implicit def _ops_for_routeb_option[A](r: RouteB[Option[A]]): RouteBO[A]
  22. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  23. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  24. def dynRender[P <: Page, A](g: (P) => A)(implicit ev: (A) => VdomElement): (P) => Renderer
  25. def dynRenderP[P <: Page, A](g: (P, Props) => A)(implicit ev: (A) => VdomElement): (P) => Renderer
  26. def dynRenderR[P <: Page, A](g: (P, RouterCtl[Page]) => A)(implicit ev: (A) => VdomElement): (P) => Renderer
  27. def dynRenderRP[P <: Page, A](g: (P, RouterCtl[Page], Props) => A)(implicit ev: (A) => VdomElement): (P) => Renderer
  28. def dynamicRedirect[A](r: Route[A]): DynamicRedirectB[Page, A, Rule]
  29. def dynamicRoute[P <: Page](r: Route[P])(pf: PartialFunction[Page, P]): DynamicRouteB[Page, P, Rule]
  30. def dynamicRouteCT[P <: Page](r: Route[P])(implicit ct: ClassTag[P]): DynamicRouteB[Page, P, Rule]
  31. def dynamicRouteF[P <: Page](r: Route[P])(op: (Page) => Option[P]): DynamicRouteB[Page, P, Rule]
  32. def emptyRule: Rule
  33. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  34. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  35. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  36. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  37. val int: RouteB[Int]
  38. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  39. val long: RouteB[Long]
  40. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  41. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  42. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  43. lazy val queryToMap: RouteB[Map[String, String]]

    Captures the query portion of the URL to a param map.

    Captures the query portion of the URL to a param map.

    Note that this is not a strict capture, URLs without a query string will still be accepted, and the parameter map will simply by empty.

  44. def redirectToPage(page: Page)(implicit via: SetRouteVia): RedirectToPage[Page]
  45. def redirectToPath(path: String)(implicit via: SetRouteVia): RedirectToPath[Page]
  46. def redirectToPath(path: Path)(implicit via: SetRouteVia): RedirectToPath[Page]
  47. def remainingPath: RouteB[String]

    Captures the (non-empty) remaining portion of the URL path.

  48. def remainingPathOrBlank: RouteB[String]

    Captures the (potentially-empty) remaining portion of the URL path.

  49. def removeLeadingSlashes: Rule

    A rule that uses a replace-state redirect to remove leading slashes from route URLs.

  50. def removeQuery: Rule

    Removes the query portion of the URL.

    Removes the query portion of the URL.

    e.g. a/b?c=1 to a/b

  51. def removeTrailingSlashes: Rule

    A rule that uses a replace-state redirect to remove trailing slashes from route URLs.

  52. def render[A](a: => A)(implicit ev: (A) => VdomElement): Renderer
  53. def renderP[A](g: (Props) => A)(implicit ev: (A) => VdomElement): Renderer
  54. def renderR[A](g: (RouterCtl[Page]) => A)(implicit ev: (A) => VdomElement): Renderer
  55. def renderRP[A](g: (RouterCtl[Page], Props) => A)(implicit ev: (A) => VdomElement): Renderer
  56. def rewritePath(pf: PartialFunction[Path, Redirect]): Rule
  57. def rewritePathF(f: (Path) => Option[Redirect]): Rule
  58. def rewritePathR(r: Pattern, f: (Matcher) => Option[Redirect]): Rule
  59. def root: Path
  60. def staticRedirect(r: Route[Unit]): StaticRedirectB[Page, Rule]
  61. def staticRoute(r: Route[Unit], page: Page): StaticRouteB[Page, Rule]

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

  62. def string(regex: String): RouteB[String]

    Matches a string.

    Matches a string.

    Best to use a whitelist of characters, eg. "[a-zA-Z0-9]+". Do not capture groups; use "[a-z]+" instead of "([a-z]+)". If you need to group, use non-capturing groups like "(?:bye|hello)" instead of "(bye|hello)".

  63. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  64. def toString(): String
    Definition Classes
    AnyRef → Any
  65. def trimSlashes: Rule

    A rule that uses a replace-state redirect to remove leading and trailing slashes from route URLs.

  66. val uuid: RouteB[UUID]
  67. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  68. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  69. 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
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped