Class/Object

japgolly.scalajs.react.extra.router

RouterConfigDsl

Related Docs: object RouterConfigDsl | package router

Permalink

final class RouterConfigDsl[Page] 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. All

Instance Constructors

  1. new RouterConfigDsl()

    Permalink

Type Members

  1. type Action = router.Action[Page]

    Permalink
  2. type Parsed = Either[router.Redirect[Page], Page]

    Permalink
  3. type Redirect = router.Redirect[Page]

    Permalink
  4. type Renderer = router.Renderer[Page]

    Permalink
  5. type Rule = StaticDsl.Rule[Page]

    Permalink
  6. type Rules = StaticDsl.Rules[Page]

    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. def Rule: StaticDsl.Rule.type

    Permalink
  5. implicit def _auto_notFound_from_parsed[A](a: A)(implicit arg0: (A) ⇒ Parsed): (Path) ⇒ Parsed

    Permalink
  6. implicit def _auto_notFound_from_parsedF[A](f: (Path) ⇒ A)(implicit arg0: (A) ⇒ Parsed): (Path) ⇒ Parsed

    Permalink
  7. implicit def _auto_pToAction_from_action(a: ⇒ Action): (Page) ⇒ Action

    Permalink
  8. implicit def _auto_parsedO_from_parsed[A](p: A)(implicit arg0: (A) ⇒ Parsed): Option[Parsed]

    Permalink
  9. implicit def _auto_parsedO_from_parsedO[A](o: Option[A])(implicit arg0: (A) ⇒ Parsed): Option[Parsed]

    Permalink
  10. implicit def _auto_parsed_from_page(p: Page): Parsed

    Permalink
  11. implicit def _auto_parsed_from_redirect(r: Redirect): Parsed

    Permalink
  12. implicit def _auto_pattern_from_regex(r: Regex): Pattern

    Permalink
  13. implicit def _auto_routeB_from_path(p: Path): RouteB[Unit]

    Permalink
  14. implicit def _auto_routeB_from_str(l: String): RouteB[Unit]

    Permalink
  15. implicit def _auto_routeParser_from_parsed[A](a: A)(implicit arg0: (A) ⇒ Parsed): (Path) ⇒ Option[Parsed]

    Permalink
  16. implicit def _auto_routeParser_from_parsedF[A](f: (Path) ⇒ A)(implicit arg0: (A) ⇒ Parsed): (Path) ⇒ Option[Parsed]

    Permalink
  17. implicit def _auto_routeParser_from_parsedFO[A](f: (Path) ⇒ Option[A])(implicit arg0: (A) ⇒ Parsed): (Path) ⇒ Option[Parsed]

    Permalink
  18. implicit def _auto_routeParser_from_parsedO[A](o: Option[A])(implicit arg0: (A) ⇒ Parsed): (Path) ⇒ Option[Parsed]

    Permalink
  19. implicit def _auto_route_from_routeB[A, R](r: R)(implicit arg0: (R) ⇒ RouteB[A]): Route[A]

    Permalink
  20. implicit def _auto_rules_from_rulesB(r: Rule): Rules

    Permalink
  21. implicit def _auto_someAction[A <: Action](a: A): Option[A]

    Permalink
  22. implicit def _ops_for_routeb_option[A](r: RouteB[Option[A]]): RouteBO[A]

    Permalink
  23. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. def dynRender[P <: Page, A](g: (P) ⇒ A)(implicit arg0: (A) ⇒ VdomElement): (P) ⇒ Renderer

    Permalink
  26. def dynRenderR[P <: Page, A](g: (P, RouterCtl[Page]) ⇒ A)(implicit arg0: (A) ⇒ VdomElement): (P) ⇒ Renderer

    Permalink
  27. def dynamicRedirect[A](r: Route[A]): DynamicRedirectB[Page, A, Rule]

    Permalink
  28. def dynamicRoute[P <: Page](r: Route[P])(pf: PartialFunction[Page, P]): DynamicRouteB[Page, P, Rule]

    Permalink
  29. def dynamicRouteCT[P <: Page](r: Route[P])(implicit ct: ClassTag[P]): DynamicRouteB[Page, P, Rule]

    Permalink
  30. def dynamicRouteF[P <: Page](r: Route[P])(op: (Page) ⇒ Option[P]): DynamicRouteB[Page, P, Rule]

    Permalink
  31. def emptyRule: Rule

    Permalink
  32. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  33. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  34. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  36. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  37. val int: RouteB[Int]

    Permalink
  38. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  39. val long: RouteB[Long]

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

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

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

    Permalink
    Definition Classes
    AnyRef
  43. def redirectToPage(page: Page)(implicit method: Method): RedirectToPage[Page]

    Permalink
  44. def redirectToPath(path: String)(implicit method: Method): RedirectToPath[Page]

    Permalink
  45. def redirectToPath(path: Path)(implicit method: Method): RedirectToPath[Page]

    Permalink
  46. def remainingPath: RouteB[String]

    Permalink

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

  47. def remainingPathOrBlank: RouteB[String]

    Permalink

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

  48. def removeLeadingSlashes: Rule

    Permalink

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

  49. def removeQuery: Rule

    Permalink

    Removes the query portion of the URL.

    Removes the query portion of the URL.

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

  50. def removeTrailingSlashes: Rule

    Permalink

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

  51. def render[A](a: ⇒ A)(implicit arg0: (A) ⇒ VdomElement): Renderer

    Permalink
  52. def renderR[A](g: (RouterCtl[Page]) ⇒ A)(implicit arg0: (A) ⇒ VdomElement): Renderer

    Permalink
  53. def rewritePath(pf: PartialFunction[Path, Redirect]): Rule

    Permalink
  54. def rewritePathF(f: (Path) ⇒ Option[Redirect]): Rule

    Permalink
  55. def rewritePathR(r: Pattern, f: (Matcher) ⇒ Option[Redirect]): Rule

    Permalink
  56. def root: Path

    Permalink
  57. def staticRedirect(r: Route[Unit]): StaticRedirectB[Page, Rule]

    Permalink
  58. def staticRoute(r: Route[Unit], page: Page): StaticRouteB[Page, Rule]

    Permalink

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

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

    Permalink

    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)".

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

    Permalink
    Definition Classes
    AnyRef
  61. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  62. def trimSlashes: Rule

    Permalink

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

  63. val uuid: RouteB[UUID]

    Permalink
  64. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped