Class

sri.universal.router

UniversalRouterComponentJS

Related Doc: package router

Permalink

abstract class UniversalRouterComponentJS[P <: ReactJSProps, S] extends ReactComponentJS[P, S]

router component for JS props type //TODO why no trait support for @ScalaJSDefined too much copy paste :(

Annotations
@RawJSType() @ScalaJSDefined()
Linear Supertypes
ReactComponentJS[P, S], InternalReactJSComponent[P, S], Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UniversalRouterComponentJS
  2. ReactComponentJS
  3. InternalReactJSComponent
  4. Object
  5. Any
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new UniversalRouterComponentJS()

    Permalink

Abstract Value Members

  1. abstract def render(): ReactElement

    Permalink
    Definition Classes
    ReactComponentJS
    Annotations
    @ExposedJSMember()

Concrete 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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def children: PropsChildren

    Permalink
    Definition Classes
    ReactComponentJS
    Annotations
    @ExposedJSMember() @inline()
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def componentDidMount(): Unit

    Permalink
    Definition Classes
    InternalReactJSComponent
  8. def componentDidUpdate(prevProps: ⇒ P, prevState: ⇒ S): Unit

    Permalink
    Definition Classes
    ReactComponentJS
    Annotations
    @ExposedJSMember() @JSName( "sComponentDidUpdate" )
  9. def componentWillMount(): Unit

    Permalink
    Definition Classes
    UniversalRouterComponentJS → InternalReactJSComponent
  10. def componentWillReceiveProps(nextProps: P): Unit

    Permalink
    Definition Classes
    InternalReactJSComponent
  11. def componentWillUnmount(): Unit

    Permalink
    Definition Classes
    InternalReactJSComponent
  12. def componentWillUpdate(nextProps: ⇒ P, nextState: ⇒ S): Unit

    Permalink
    Definition Classes
    ReactComponentJS
    Annotations
    @ExposedJSMember() @JSName( "sComponentWillUpdate" )
  13. var context: Dynamic

    Permalink
    Definition Classes
    InternalReactJSComponent
  14. def currentRoute: NavigatorRoute

    Permalink
    Annotations
    @inline()
  15. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def forceUpdate(callback: Function): Unit

    Permalink
    Definition Classes
    InternalReactJSComponent
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. def getCurrentRoutes(): List[NavigatorRoute]

    Permalink
  21. def getRouterCtrl(): UniversalRouterCtrl

    Permalink

    reference to ctrl , you can use this to pass router control outside of component scope (example BackAndroid)

  22. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  23. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  24. def initialState(s: S): Unit

    Permalink
    Definition Classes
    ReactComponentJS
    Annotations
    @ExposedJSMember() @inline()
  25. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  26. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  27. def jsComponentDidUpdate(prevProps: P, prevState: JSState[S]): Unit

    Permalink
    Definition Classes
    ReactComponentJS → InternalReactJSComponent
    Annotations
    @ExposedJSMember() @JSName( "componentDidUpdate" )
  28. def jsComponentWillUpdate(nextProps: P, nextState: JSState[S]): Unit

    Permalink
    Definition Classes
    ReactComponentJS → InternalReactJSComponent
    Annotations
    @ExposedJSMember() @JSName( "componentWillUpdate" )
  29. def jsSetState(func: Function2[JSState[S], JSProps[P], JSState[S]]): Unit

    Permalink
    Definition Classes
    InternalReactJSComponent
    Annotations
    @JSName( "setState" )
  30. def jsSetState(newState: JSState[S], callback: UndefOr[Function0[_]]): Unit

    Permalink
    Definition Classes
    InternalReactJSComponent
    Annotations
    @JSName( "setState" )
  31. def jsShouldComponentUpdate(nextProps: P, nextState: JSState[S]): Boolean

    Permalink
    Definition Classes
    ReactComponentJS → InternalReactJSComponent
    Annotations
    @ExposedJSMember() @JSName( "shouldComponentUpdate" )
  32. def navigateBack(): Unit

    Permalink

    navigates to previous route by unmounting current scene , if you call this on route stack on < 2 it will throw error so please us showbackButton() boolean as guard

  33. def navigateBackAndReloadPrevious(): Unit

    Permalink

    it reloads the previous scene and pop current scene

  34. def navigateBackAndReplacePrevious[T](page: DynamicPage[T], props: T, title: String): Unit

    Permalink

    use this method to replace previous route with dynamic route and go back

  35. def navigateBackAndReplacePrevious(page: StaticPage): Unit

    Permalink

    use this method to replace previous route with static route and go back

  36. def navigateTo[T](page: DynamicPage[T], props: T, title: String): Unit

    Permalink
  37. def navigateTo(page: StaticPage): Unit

    Permalink

    use this method to navigate to static pages ,it pushes new scene to the stack

  38. def navigateToHome(): Unit

    Permalink

    it will take you to initial route/home route

  39. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  42. def previousRoute: UndefOr[NavigatorRoute]

    Permalink
    Annotations
    @inline()
  43. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  44. def props: P

    Permalink
    Definition Classes
    ReactComponentJS
    Annotations
    @ExposedJSMember() @JSName( "sprops" ) @inline()
  45. var refs: Dynamic

    Permalink
    Definition Classes
    InternalReactJSComponent
  46. def replace(page: StaticPage): Unit

    Permalink

    use this method to replace the current scene with new scene

  47. def resetStackWithNewRoute(page: StaticPage): Unit

    Permalink

    This is kinda hacky , use this method when you want to replace entire routestack with a new route

  48. def setState(func: Function2[S, P, S]): Unit

    Permalink
    Definition Classes
    ReactComponentJS
    Annotations
    @ExposedJSMember() @JSName( "sSetStateFunc" ) @inline()
  49. def setState(newState: S, callback: UndefOr[Function0[_]]): Unit

    Permalink
    Definition Classes
    ReactComponentJS
    Annotations
    @ExposedJSMember() @JSName( "sSetState" ) @inline()
  50. def shouldComponentUpdate(nextProps: ⇒ P, nextState: ⇒ S): Boolean

    Permalink
    Definition Classes
    ReactComponentJS
    Annotations
    @ExposedJSMember() @JSName( "sShouldComponentUpdate" )
  51. def state: S

    Permalink
    Definition Classes
    ReactComponentJS
    Annotations
    @ExposedJSMember() @JSName( "sState" ) @inline()
  52. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  53. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  54. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  55. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  56. final def wait(): Unit

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

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

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

Inherited from ReactComponentJS[P, S]

Inherited from InternalReactJSComponent[P, S]

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped