1.0.9 • Published 3 months ago

react-dynamic-datatable-component v1.0.9

Weekly downloads
-
License
ISC
Repository
github
Last release
3 months ago

React Dynamic DataTable Component

React Dynamic DataTable Component for using in react project.

Installation

Use the package manager npm to install React Dynamic DataTable Component.

npm i react-dynamic-datatable-component

Usage

import DynamicDataTable from 'react-dynamic-datatable-component'

const columns = [
    {
      name: 'Name',
      sortable: true,
      cell: row => row.name
    },
    {
      name: 'Age',
      cell: row => row.age
    }

  ]

const data = [];

<DynamicDataTable 
    paginationServer 
    columns={columns} 
    data={data} 
    tableId='unique-name-for-every-table-in-a-page' 
    columnCache={false} 
    progressPending={!true} 
    selectableRows={false}
    expandableRows = {true}
    onSort = {handleSort}
    sortServer= {false}
    paginationServer = {false}
    className= "string"
    filter = {true}
    filterArray = {arrayData}
    ExpandedComponent={<ExpendedComponent/>}
    rowPerPage = {10}
    onSelectedRowsChange = {handleRowsFunction()}
    selectableRowSelected = {handleRowsFunction()}
/>

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.

License

ISC

1.0.9

3 months ago

1.0.8

3 months ago

1.0.7

3 months ago

1.0.6

3 months ago

1.0.5

3 months ago

1.0.4

3 months ago

1.0.3

3 months ago

1.0.2

3 months ago

1.0.1

3 months ago