react-table-grid
external library
Install
npm install --save react-table-grid
Usage
import React Component from 'react' import TableGrid from 'react-table-grid' const mockData = data: foo: 'bar' ; { return <TableGrid = = = = = /> }
Props
Common props you may want to specify include:
data
- data ArrayclassName
- apply a className to the controlrenderColumns
- an object with render methods for every column; columns will be rendered according to order of keysrenderChildTitle
- to render a title for child tablesrenderChildHeaders
- to render column headers for child tablescollapseRow
- subscribe to collapse events
** pagination props according to https://github.com/AdeleD/react-paginate#readme
License
MIT © Mikhe