Class

sri.universal.router

UniversalRouterComponent

Related Doc: package router

Permalink

abstract class UniversalRouterComponent[P, S] extends ReactComponent[P, S]

Annotations
@RawJSType() @ScalaJSDefined()
Linear Supertypes
ReactComponent[P, S], InternalReactComponent[P, S], Object, Any, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. UniversalRouterComponent
  2. ReactComponent
  3. InternalReactComponent
  4. Object
  5. Any
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new UniversalRouterComponent()

    Permalink

Abstract Value Members

  1. abstract def render(): ReactElement

    Permalink
    Definition Classes
    ReactComponent
    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
    ReactComponent
    Annotations
    @ExposedJSMember() @inline()
  6. def clone(): AnyRef

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

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

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

    Permalink
    Definition Classes
    UniversalRouterComponent → InternalReactComponent
  10. def componentWillReceiveProps(nextProps: ⇒ P): Unit

    Permalink
    Definition Classes
    ReactComponent
    Annotations
    @ExposedJSMember() @JSName( "sComponentWillReceiveProps" )
  11. def componentWillUnmount(): Unit

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

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

    Permalink
    Definition Classes
    InternalReactComponent
  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
    InternalReactComponent
  19. final def getClass(): Class[_]

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

    Permalink
  21. def getRef[T](name: String, cls: Class[T]): T

    Permalink
    Definition Classes
    ReactComponent
    Annotations
    @ExposedJSMember() @inline()
  22. def getRouterCtrl(): UniversalRouterCtrl

    Permalink

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

  23. def hasOwnProperty(v: String): Boolean

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

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

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

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

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

    Permalink
    Definition Classes
    ReactComponent → InternalReactComponent
    Annotations
    @ExposedJSMember() @JSName( "componentDidUpdate" )
  29. def jsComponentWillReceiveProps(nextProps: JSProps[P]): Unit

    Permalink
    Definition Classes
    ReactComponent → InternalReactComponent
    Annotations
    @ExposedJSMember() @JSName( "componentWillReceiveProps" )
  30. def jsComponentWillUpdate(nextProps: JSProps[P], nextState: JSState[S]): Unit

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

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

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

    Permalink
    Definition Classes
    ReactComponent → InternalReactComponent
    Annotations
    @ExposedJSMember() @JSName( "shouldComponentUpdate" )
  34. 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

  35. def navigateBackAndReloadPrevious(): Unit

    Permalink

    it reloads the previous scene and pop current scene

  36. 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

  37. def navigateBackAndReplacePrevious(page: StaticPage): Unit

    Permalink

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

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

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

    Permalink

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

  40. def navigateToHome(): Unit

    Permalink

    it will take you to initial route/home route

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

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

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

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

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

    Permalink
    Definition Classes
    Object
  46. def props: P

    Permalink
    Definition Classes
    ReactComponent
    Annotations
    @ExposedJSMember() @JSName( "sProps" ) @inline()
  47. def propsDynamic: Dynamic

    Permalink
    Definition Classes
    ReactComponent
    Annotations
    @ExposedJSMember() @inline()
  48. var refs: Dynamic

    Permalink
    Definition Classes
    InternalReactComponent
  49. def replace(page: StaticPage): Unit

    Permalink

    use this method to replace the current scene with new scene

  50. def resetStackWithNewRoute(page: StaticPage): Unit

    Permalink

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

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

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

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

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

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

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

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

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

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

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

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

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

Inherited from ReactComponent[P, S]

Inherited from InternalReactComponent[P, S]

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped