react-classic-table
v0.0.1
Published
Classic table for react
Maintainers
Readme

react-classic-table
Classic data viewer table for React
Installation
yarn add react-classic-tableExample
look to /examples folder
Component Properties
| Property | Type | Default | Required | Description |
| :------------------ | :---------------------------- | :---------- | :-------- | :------------------------------------------------------------------- |
| columns | Array <ColumnInfoObject>[] | | true | Columns to show in table |
| rows | Array <object>[] | | true | Rows to list in table |
| defaultSelectedRows | Array <number>[] | [] | | Selected row indexes |
| onSelectRow | Function | undefined | | Function to call when rows are selected: function (index, indexes) |
Column Info Object Properties
| Property | Type | Default | Required | Description |
| :---------- | :------- | :---------- | :-------- | :-------------------------------------------------------------- |
| key | String | | true | Unique column key |
| title | String | | true | Column title |
| renderProp | String | | true | Property to be render in column |
| alignment | String | 'start' | | ['start', 'center', 'end'] |
| render | Function | undefined | | Function to customize the column value: function (value, row) |
