trait RoutingSourceComponent[Info <: AnyRef, To] extends AnyRef
Subscribe to a RoutingSource and establish a react routing
context. Unsubscribe on unmount. Children can be anything but look at
ShowIfMatch
or an inside component in any subclasses e.g. Route
in
ReactionRoutingDOMComponent
.
- Self Type
- RoutingSourceComponent[Info, To]
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- RoutingSourceComponent
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- sealed trait NavAction extends AnyRef
- Attributes
- protected
- case class NewInfo(info: Info) extends NavAction with Product with Serializable
- Attributes
- protected
- trait Props extends Object
- Annotations
- @JSType()
- abstract type RouterInfo <: RouterInfoLike
- trait RouterInfoLike extends AnyRef
- type State = Option[Info]
Abstract Value Members
- abstract def makeContextValue(info: Option[Info]): RouterInfo
- abstract val routing: RoutingSource[Info, To]
- Attributes
- protected
Concrete 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
- val Name: String
Override to change the name.
- val RouterContext: ReactContext[RouterInfo]
- def apply(children_: ReactNode): ReactNode
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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 render: (Props) => ReactNode
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object ShowIfMatch
If the predicate is true, show the child component and optionally alter the context the child sees to reflect the match e.g.
If the predicate is true, show the child component and optionally alter the context the child sees to reflect the match e.g. strip off the front segment of the URL.
- case object Subscribe extends NavAction with Product with Serializable
- Attributes
- protected