package dom

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

Type Members

  1. sealed trait Action extends Any
    Annotations
    @JSType() @native()
  2. type Hash = String
  3. trait History[S] extends Object

    History from package history.

    History from package history. Allows you control navigation via "commands"

    S

    State, often js.Any, Null or Nothing if you do not need state.

    Annotations
    @JSType() @native()
  4. type Href = String
  5. trait Location[S] extends Object

    A simplified but overlapping version from the DOM lib per the js package 'history'

    A simplified but overlapping version from the DOM lib per the js package 'history'

    Annotations
    @JSType() @native()
  6. implicit class Location2LocationDescriptor[S] extends AnyRef

    LocationDescriptor is Location but all vars are optional.

  7. trait LocationDescriptor[S] extends Object

    Like Location but everything is optional.

    Like Location but everything is optional.

    Annotations
    @JSType()
  8. type LocationKey = String
  9. trait Match[T] extends Object

    Match object often passed to render props in the Route element.

    Match object often passed to render props in the Route element.

    T

    Params object. If you do not need params you can use Null, js.Any, etc.

    Annotations
    @JSType() @native()
  10. type Path = String
  11. type Pathname = String
  12. trait ReactRouterDOM extends Object
    Annotations
    @JSType() @native()
  13. trait RouteComponentProps[S, P] extends Object

    P is params object.

    P is params object. S is state stored in history. If you are not using either, you can use RouteComponentProps[Null, Nothing].

    Annotations
    @JSType() @native()
  14. trait RouteProps[S] extends Object
    Annotations
    @JSType()
  15. trait RouterContext extends Object
    Annotations
    @JSType() @native()
  16. type Search = String

Value Members

  1. object Action
  2. object BrowserRouter
  3. case object BuildInfo extends Product with Serializable

    This object was generated by sbt-buildinfo.

  4. object HashRouter
  5. object Prompt
  6. object Redirect
  7. object Route

    Route, most commonly used router component.

    Route, most commonly used router component. Watch out for which apply method you use as rendering with path, children or exact=true does different thnigs. Rendering with a "component" specified as the prop is not supported. Rendering with children means that the child is always rendered regardless of whether there is a match or not.

    Type parameter S stands for "state" which is state you can add to the history stack per push. P is a js object for query parameters, hence, each property should have a string value. Using the children props always renders regardless of path match. Typically, use the render prop.

  8. object Switch
  9. object hooks extends Object with ReactRouterDOM
    Annotations
    @native() @JSImport("react-router-dom", JSImport.Namespace)

Inherited from AnyRef

Inherited from Any

Ungrouped