tableview-library
v1.1.3
Published
Made with create-react-library
Downloads
1
Readme
Table View Library
Made with create-react-library
Install
npm install --save tableview-library
Main features
- Sorting
- Search
- Column Ordering
- Custum number of table line
Example
import React, {useState} from 'react';
import TableView from 'tableview-library';
import 'tableview-library/dist/index.css';
export default function Example() {
const[dataTable, setDataTable] = useState([{}]);
const dataName = []; // Name of each data to spread it on the table
const keys = []; // Real name of each value from the dataTable
return (
<TableView
columns={dataName}
datas={dataTable}
setDatas={setDataTable}
keys={keys}
/>
);
}
License
MIT © mgasoftware