Packages

p

com.raquo

waypoint

package waypoint

This is the public API. Import com.raquo.waypoint or com.raquo.waypoint._

Linear Supertypes
Waypoint[DummyError, DummyError, DummyError], FragmentImpl[DummyError], QueryParametersImpl[DummyError], PathSegmentImpl[DummyError], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. waypoint
  2. Waypoint
  3. FragmentImpl
  4. QueryParametersImpl
  5. PathSegmentImpl
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. sealed class CollectPageRenderer[Page, +View] extends Renderer[Page, View]

  2. sealed class CollectPageSignalRenderer[InPage, OutPage, +View] extends Renderer[InPage, View]

    The job of this renderer is to provide Signal[OutPage] => View instead of the more obvious but less efficient Signal[OutPage] => Signal[View]

    The job of this renderer is to provide Signal[OutPage] => View instead of the more obvious but less efficient Signal[OutPage] => Signal[View]

    It is sort of like a specialized version of Airstream .split

  3. class ContextRouteBuilder[Bundle, Page, Ctx, CtxArgs] extends AnyRef

    A builder for routes with context.

    A builder for routes with context.

    Context, in this context (heheh), is a type that encodes a set of query params that is shared between the routes created by this builder.

    For example, your Laminar web app might have a big documentation section with many routes, but where every route is expected to have a "lang" query param to indicate the selected language and a "version" param to indicate the product version (unrealistic doc standards, I know).

    So, you could add these two params to every page type that needs them and to every route for those page types, but that could be annoying. So instead, you could create a ContextRouteBuilder which will let you specify the necessary types / conversions / patterns only once.

    See ContextRouteBuilderSpec for a concrete example.

    Bundle

    - The type of pages (including the context part) handled by the routes produced by this builder. A bundle consists of a route-specific Page, and a Context shared by all routes by this builder. In the simplest case, imagine case class Bundle(p: Page, ctx: Context)

    Page

    - The base type for the route-specific parts of the Bundle

    Ctx

    - The part of the Bundle shared by all routes made by this builder, In the simplest case, imagine case class SharedParams(lang: Option[String], version: Option[String])

  4. type FragmentPatternArgs[PathArgs, QueryArgs, FragmentArgs] = PathQueryFragmentMatching[PathArgs, QueryArgs, FragmentArgs]

    A bundle of path args, query param args, and fragment args

  5. type PatternArgs[PathArgs, QueryArgs] = UrlMatching[PathArgs, QueryArgs]

    A bundle of path args and query param args

  6. trait Renderer[-Page, +View] extends AnyRef
  7. class Route[Page, Args] extends AnyRef

    Encoding and decoding are partial functions.

    Encoding and decoding are partial functions. Their partial-ness should be symmetrical, otherwise you'll end up with a route that can parse a URL into a Page but can't encode the page into the same URL (or vice versa)

    Page

    - Types of pages that this Route is capable of matching. Note: the Route might match only a subset of pages of this type.

    Args

    - Type of data saved in the URL for pages matched by this route Note: the Route might match only a subset of args of this type.

  8. class RouteEvent[BasePage] extends AnyRef

    This private event is fired when a route is changed.

  9. class Router[BasePage] extends AnyRef

    Exceptions thrown

    Exception - when initialUrl is not absolute or does not match origin

  10. case class SplitRender[Page, View](pageSignal: Signal[Page], renderers: List[Renderer[Page, View]] = Nil) extends Product with Serializable
  11. class Waypoint[PathErr, QueryErr, FragErr] extends PathSegmentImpl[PathErr] with QueryParametersImpl[QueryErr] with FragmentImpl[FragErr]

Abstract Value Members

  1. implicit abstract val fragmentError: FragmentMatchingError[DummyError]
    Attributes
    protected
    Definition Classes
    FragmentImpl
  2. implicit abstract val pathError: PathMatchingError[DummyError]
    Attributes
    protected
    Definition Classes
    PathSegmentImpl
  3. implicit abstract val queryError: ParamMatchingError[DummyError]
    Attributes
    protected
    Definition Classes
    QueryParametersImpl

Concrete Value Members

  1. def FragmentPatternArgs: PathQueryFragmentMatching.type
    Annotations
    @inline()
  2. def PatternArgs: UrlMatching.type
    Annotations
    @inline()
  3. implicit final def asFragment[T](t: T)(implicit fromString: FromString[T, DummyError], printer: Printer[T], classTag: ClassTag[T]): Fragment[Unit, DummyError]
    Definition Classes
    FragmentImpl
  4. final def emptyFragment: Fragment[Unit, DummyError]
    Definition Classes
    FragmentImpl
  5. lazy val endOfSegments: PathSegment[Unit, DummyError]
    Definition Classes
    PathSegmentImpl
  6. final def fragment[T](implicit fromString: FromString[T, DummyError], printer: Printer[T]): Fragment[T, DummyError]
    Definition Classes
    FragmentImpl
  7. val ignore: QueryParameters[Unit, DummyError]
    Definition Classes
    QueryParametersImpl
  8. def listParam[Q](paramName: String)(implicit fromString: FromString[Q, DummyError], printer: Printer[Q]): QueryParameters[List[Q], DummyError]
    Definition Classes
    QueryParametersImpl
  9. final def maybeFragment[T](implicit fromString: FromString[T, DummyError], printer: Printer[T]): Fragment[Option[T], DummyError]
    Definition Classes
    FragmentImpl
  10. lazy val noMatch: PathSegment[Unit, DummyError]
    Definition Classes
    PathSegmentImpl
  11. def oneOf[T](t: T, ts: T*)(implicit fromString: FromString[T, DummyError], printer: Printer[T]): PathSegment[Unit, DummyError]
    Definition Classes
    PathSegmentImpl
  12. def param[Q](paramName: String)(implicit fromString: FromString[Q, DummyError], printer: Printer[Q]): QueryParameters[Q, DummyError]
    Definition Classes
    QueryParametersImpl
  13. val remainingSegments: PathSegment[List[String], DummyError]
    Definition Classes
    PathSegmentImpl
  14. val root: PathSegment[Unit, DummyError]
    Definition Classes
    PathSegmentImpl
  15. def segment[T](implicit fromString: FromString[T, DummyError], printer: Printer[T]): PathSegment[T, DummyError]
    Definition Classes
    PathSegmentImpl
  16. implicit def unaryPathSegment[T](t: T)(implicit fromString: FromString[T, DummyError], printer: Printer[T]): PathSegment[Unit, DummyError]
    Definition Classes
    PathSegmentImpl
  17. object Route
  18. object Router
  19. object Utils

Deprecated Value Members

  1. val empty: QueryParameters[Unit, DummyError]
    Definition Classes
    QueryParametersImpl
    Annotations
    @deprecated
    Deprecated

    (Since version 0.3.0) empty was poorly named, and is replaced by ignore. The semantic for empty might change in the future!

Inherited from Waypoint[DummyError, DummyError, DummyError]

Inherited from FragmentImpl[DummyError]

Inherited from QueryParametersImpl[DummyError]

Inherited from PathSegmentImpl[DummyError]

Inherited from AnyRef

Inherited from Any

Ungrouped