React Data table component using Fixed-Data-Table for Flybase.org which has sort/filter/export capabilities.
git clone https://github.com/FlyBase/react-flybase-datagrid.git
cd react-flybase-datagrid
git checkout master
npm install
npm run startimport React from 'react'
import FlybaseDataGrid from 'react-flybase-datagrid'
class Application extends React.Component {
render() {
const columns = [
{
id: 'id',
name: 'ID'
},
{
id: 'name',
name: 'Name',
},
{
id: 'address',
name: 'Street Address'
},
{
id: 'state',
name: 'State'
},
{
id: 'zip',
name: 'Code, Zip'
}
];
const items = [{id: '1', name: 'Hoosier', address: '107 S Indiana Ave', state: 'IN', zip: '47405'}];
return (
<div>
<FlybaseDataGrid
columns={columns}
data={items}
showColumnFilter
downloadButton={['tsv']}
maxHeight={1000}
width={1110} />
</div>
);
}
};npm:
npm install --save react-flybase-datagrid

