2.0.7 • Published 10 months ago

bsr-table v2.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

bsr-table

ReactJs component table

NPM JavaScript Style Guide

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

Props, Function.

Examples, Help pages.

2.0.7

10 months ago

2.0.6

10 months ago

2.0.3

12 months ago

2.0.1

12 months ago

2.0.0

12 months ago

1.22.23

12 months ago