0.0.1 • Published 3 years ago

react-classic-table v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

React Classic Table

react-classic-table

Classic data viewer table for React

Installation

yarn add react-classic-table

Example

look to /examples folder

Component Properties

PropertyTypeDefaultRequiredDescription
columnsArray <ColumnInfoObject>[]trueColumns to show in table
rowsArray <object>[]trueRows to list in table
defaultSelectedRowsArray <number>[][]Selected row indexes
onSelectRowFunctionundefinedFunction to call when rows are selected: function (index, indexes)

Column Info Object Properties

PropertyTypeDefaultRequiredDescription
keyStringtrueUnique column key
titleStringtrueColumn title
renderPropStringtrueProperty to be render in column
alignmentString'start'['start', 'center', 'end']
renderFunctionundefinedFunction to customize the column value: function (value, row)