react-datatable-pager-lite
v1.1.6
Published
react Datatable component with pager, sortable columns and a search field filter
Downloads
4
Maintainers
Readme
react-datatable-pager-lite
react Datatable component with pager, sortable columns and a search field filter
Compatibility
Build with Node version 16.17.0 Compatible with Node version 14.xx.x
Install
npm install --save react-datatable-pager-lite
Usage
import DataTable from 'react-datatable-pager-lite'
import 'react-datatable-pager-lite/dist/index.css'
const App = () => {
const columns = {
{ title: 'Col 1', data: 'col1' },
{ title: 'Col 2', data: 'col2' },
}
const list = [
{col1:'dog', col2:'female'},
{col1:'cat', col2:'male'},
]
const rowsPerPage = [10, 25, 50, 100]
return(<>
<DataTable
columns={columns}
dataList={list}
name='my-table'
rowsPerPage={rowsPerPage[0]}
rowsPossibleUserChoice={rowsPerPage}
/></>)
}
License
MIT © drrr-deudeu