Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aimun-naharr/react-dynamic-data-table

A dynamic datatable for managing your data conveniently
https://github.com/aimun-naharr/react-dynamic-data-table

Last synced: 15 days ago
JSON representation

A dynamic datatable for managing your data conveniently

Awesome Lists containing this project

README

        

# React Dynamic Datatable

Welcome to React Dynamic DataTable, a powerful and flexible React data table library designed to supercharge your data presentation in web applications. Whether you're building a robust dashboard, a comprehensive management system, or a data-driven application, our library empowers you with a feature-rich and customizable data table component.

## Key features
* Resizable Columns
* Fixed Columns
* Sorting
* Pagination
* Selectable rows
* Responsive
* Expandable rows

### Installation
```
npm i react-dynamic-data-table-component
```
### Let's try to use it
```
import DynamicTable from 'react-dynamic-data-table-component';

const columns = [
{
id: 'nameId', //must provide a id
name: "Name",
selector: "name",
sortable: true,
width: "130px",
isFixed: true,
unResizable: true
},
{
id: 'addressId',
name: "Address",
cell: (row) => row.address,
sortable: true,
width: "130px",

}
]

const data=[
{
"id": 1,
"name": "John Doe",
"age": 25,
"email": "[email protected]",
"address": "142 Center Street, Los Angeles, CA 90012",
"city": "Anytown",
"country": "USA",

},
{
"id": 2,
"name": "Alice Smith",
"age": 30,
"email": "[email protected]",
"address": "456 Elm St",
"city": "Otherville",
"country": "Canada",

}
]

```

### Selectable rows

```
const handleSelectedRows=()=>{}

```

### Expandable Rows

```
const ExpandableComponent=()=>{}

```