Class/Object

chandu0101.scalajs.react.components

ReactTable

Related Docs: object ReactTable | package components

Permalink

case class ReactTable[T](data: Seq[T], configs: List[ColumnConfig[T]] = List(), rowsPerPage: Int = 5, style: Style = ReactTable.DefaultStyle, enableSearch: Boolean = true, searchBoxStyle: Style = ReactSearchBox.DefaultStyle, onRowClick: (Int) ⇒ Callback = _ =>
Callback {}
, searchStringRetriever: (T) ⇒ String = t: T =>
t.toString
)
extends Product with Serializable

A relatively simple html/react table with a pager. You should pass in the data as a sequence of items of type T But you should also pass a list of Column Configurations, each of which describes how to get to each column for a given item in the data, how to display it, how to sort it, etc.

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReactTable
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ReactTable(data: Seq[T], configs: List[ColumnConfig[T]] = List(), rowsPerPage: Int = 5, style: Style = ReactTable.DefaultStyle, enableSearch: Boolean = true, searchBoxStyle: Style = ReactSearchBox.DefaultStyle, onRowClick: (Int) ⇒ Callback = _ =>
    Callback {}
    , searchStringRetriever: (T) ⇒ String = t: T =>
    t.toString
    )

    Permalink

Type Members

  1. class Backend extends AnyRef

    Permalink
  2. case class Props(data: Seq[T], configs: List[ColumnConfig[T]], rowsPerPage: Int, style: Style, enableSearch: Boolean, searchBoxStyle: Style) extends Product with Serializable

    Permalink
  3. case class State(filterText: String, offset: Int, rowsPerPage: Int, filteredData: Seq[T], sortedState: Map[Int, SortDirection]) extends Product with Serializable

    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. def apply(): UnmountedWithRoot[Props, MountedWithRoot[[A]A, Props, State, Backend, Props, State], Box[Props], MountedWithRoot[[A]A, Box[Props], Box[State], ReactComponent[_ <: Object, _ <: Object] with Vars[Props, State, Backend], Box[Props], Box[State]]]

    Permalink
  5. def arrowDown: japgolly.scalajs.react.vdom.html_<^.TagMod

    Permalink
  6. def arrowUp: japgolly.scalajs.react.vdom.html_<^.TagMod

    Permalink
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val component: japgolly.scalajs.react.component.Js.ComponentWithRoot[Props, [-p, +u]japgolly.scalajs.react.CtorType.Props[p, u], UnmountedWithRoot[Props, MountedWithRoot[[A]A, Props, State, Backend, Props, State], Box[Props], MountedWithRoot[[A]A, Box[Props], Box[State], ReactComponent[_ <: Object, _ <: Object] with Vars[Props, State, Backend], Box[Props], Box[State]]], Box[Props], [-p, +u]japgolly.scalajs.react.CtorType.Props[p, u], UnmountedWithRoot[Box[Props], MountedWithRoot[[A]A, Box[Props], Box[State], ReactComponent[_ <: Object, _ <: Object] with Vars[Props, State, Backend], Box[Props], Box[State]], Box[Props], MountedWithRoot[[A]A, Box[Props], Box[State], ReactComponent[_ <: Object, _ <: Object] with Vars[Props, State, Backend], Box[Props], Box[State]]]]

    Permalink
  10. val configs: List[ColumnConfig[T]]

    Permalink
  11. val data: Seq[T]

    Permalink
  12. def emptyClass: japgolly.scalajs.react.vdom.html_<^.TagMod

    Permalink
  13. val enableSearch: Boolean

    Permalink
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. def getHeaderDiv(config: ColumnConfig[T]): japgolly.scalajs.react.vdom.html_<^.TagMod

    Permalink
  18. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  22. val onRowClick: (Int) ⇒ Callback

    Permalink
  23. val rowsPerPage: Int

    Permalink
  24. val searchBoxStyle: Style

    Permalink
  25. val searchStringRetriever: (T) ⇒ String

    Permalink
  26. val style: Style

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

    Permalink
    Definition Classes
    AnyRef
  28. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped