0.1.6 • Published 2 years ago

shycin-table-react v0.1.6

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

DataTable component

This is a light React component replace the current JQuery DataTable with minimun functionnality but better performance

Installation

Use the package manager shycin-table-react to install DataTable component.

Run the following command:

npm install shycin-table-react

Usage

Example :

import DataTable from 'shycin-table-react'

function App() {
    return (
        <div className="App">
            <DataTable 
                columns={[
                    { title: 'First Name', data: 'firstName' },
                    { title: 'Last Name', data: 'lastName' }
                ]} 
                data={[
                    {"firstName": "roger","lastName": "smith"},
                    {"firstName": "carla","lastName": "johns"}
                ]} 
                lengthMenu={[10,25,50,100]}
            />
        </div>
    );
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.