bsr-table
v2.0.7
Published
ReactJS table
Downloads
2
Readme
bsr-table
ReactJs component table
Install
npm install --save bsr-table
Usage
import React, {ReactElement} from "react";
import {Table, Column, ICell,} from "bsr-table";
import "bsr-table/dist/index.css"
function getDataTable(): Array<Array<string | ReactElement | ICell>> {
const list: Array<Array<string | ReactElement | ICell>> = [];
list.push(['cell1', 'cell2', 'cell3', 'cell4'])
list.push(['cell1', 'cell2', 'cell3', 'cell4'])
list.push(['cell1', 'cell2', 'cell3', 'cell4'])
list.push(['cell1', 'cell2', 'cell3', 'cell4'])
return list;
}
<Table
id={"table_123"}
caption={'Quick stat table:'}
rowItems={getDataTable()}
style={{width: "700px"}}>
<Column style={{width: "100px"}}>Column:1</Column>
<Column>Column:2</Column>
<Column>Column:3</Column>
<Column>Column:4</Column>
</Table>
License
MIT © ionson100