react-virtualized-table
v1.5.1
Published
[Demo here!](http://react-virtualized-table.matteoterrinoni.it/ "Demo here!") --- [Stackblitz example here](https://stackblitz.com/edit/react-virtualized-table "Stackblitz example here") --- [![styled with prettier](https://img.shields.io/badge/styled_wit
Downloads
14
Readme
React Virtualized Table
Demo here!
Stackblitz example here
A simple fully working table using react-virtualized.
Usage
npm install
import {
FilteredVTable,
GivenVTable
} from 'react-virtualized-table'
import * as faker from 'faker'
export const initFakeItems = (n = 1000) => {
let list = []
for (let i = 0; i < n; i++) {
list.push({
name: faker.name.findName(),
email: faker.internet.email(),
age: faker.random.number()
})
}
return list
}
const columns = GivenVTable.columns()
.addSortableColumnFor('name')
.addColumnFor('age')
.addSortableColumnFor('email')
.result
<FilteredVTable
items={initFakeItems()}
columns={columns}/>