Class

japgolly.scalajs.react.component.builder.Builder

Step3

Related Doc: package Builder

Permalink

final class Step3[P, S, B] extends AnyRef

You're on step 3/4 on the way to building a component.

Here you specify your component's render function. For convenience there are a plethoria of methods you can call that all do the same thing but accept the argument in different shapes; the suffixes in method names refer to the argument type(s). This means you choose the method that provides the types that you need, rather than having to manually specify the types for all arguments including stuff you don't need.

If you're using a backend, then it's highly recommended that you put your render function in the backend. When you do that, make sure it's called .render and then here in the builder, use the .renderBackend or .renderBackendWithChildren methods which will use a macro to inspect your backend's render method and provide everything it needs automatically.

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

Instance Constructors

  1. new Step3(name: String, initStateFn: InitStateFn[P, S], backendFn: NewBackendFn[P, S, B])

    Permalink

Type Members

  1. type $ = RenderScope[P, S, B]

    Permalink

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 clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  15. def render(r: RenderFn[P, S, B]): Step4[P, None, S, B, None]

    Permalink
  16. macro def renderBackend: Step4[P, None, S, B, None]

    Permalink

    Use a method named render in the backend, automatically populating its arguments with props and state where needed.

  17. macro def renderBackendWithChildren: Step4[P, Varargs, S, B, None]

    Permalink

    Use a method named render in the backend, automatically populating its arguments with props, state, and propsChildren where needed.

  18. def renderC(r: ($, PropsChildren) ⇒ VdomNode): Step4[P, Varargs, S, B, None]

    Permalink
  19. def renderCS(r: ($, PropsChildren, S) ⇒ VdomNode): Step4[P, Varargs, S, B, None]

    Permalink
  20. def renderP(r: ($, P) ⇒ VdomNode): Step4[P, None, S, B, None]

    Permalink
  21. def renderPC(r: ($, P, PropsChildren) ⇒ VdomNode): Step4[P, Varargs, S, B, None]

    Permalink
  22. def renderPCS(r: ($, P, PropsChildren, S) ⇒ VdomNode): Step4[P, Varargs, S, B, None]

    Permalink
  23. def renderPS(r: ($, P, S) ⇒ VdomNode): Step4[P, None, S, B, None]

    Permalink
  24. def renderS(r: ($, S) ⇒ VdomNode): Step4[P, None, S, B, None]

    Permalink
  25. def renderStatic(r: VdomNode): Step4[P, None, S, B, None]

    Permalink
  26. def renderWith[C <: Children](r: RenderFn[P, S, B]): Step4[P, C, S, B, None]

    Permalink
  27. def render_(r: ⇒ VdomNode): Step4[P, None, S, B, None]

    Permalink
  28. def render_C(r: (PropsChildren) ⇒ VdomNode): Step4[P, Varargs, S, B, None]

    Permalink
  29. def render_CS(r: (PropsChildren, S) ⇒ VdomNode): Step4[P, Varargs, S, B, None]

    Permalink
  30. def render_P(r: (P) ⇒ VdomNode): Step4[P, None, S, B, None]

    Permalink
  31. def render_PC(r: (P, PropsChildren) ⇒ VdomNode): Step4[P, Varargs, S, B, None]

    Permalink
  32. def render_PCS(r: (P, PropsChildren, S) ⇒ VdomNode): Step4[P, Varargs, S, B, None]

    Permalink
  33. def render_PS(r: (P, S) ⇒ VdomNode): Step4[P, None, S, B, None]

    Permalink
  34. def render_S(r: (S) ⇒ VdomNode): Step4[P, None, S, B, None]

    Permalink
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  36. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  37. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped