# vista-table-react

> Coderz point demo page

Latest version **1.1.10** (published 2021-12-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install vista-table-react
pnpm add vista-table-react
yarn add vista-table-react
bun add vista-table-react
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.10 |
| Published | 2021-12-12 |
| First published | 2021-11-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 11 |
| Unpacked size | 4.5 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | coderz-point |
| Maintainers | coderz.point01 |
| Keywords | react, components, table, vista |

## Links

- npm: https://www.npmjs.com/package/vista-table-react
- npm.io page: https://npm.io/package/vista-table-react

## Dependencies (11)

- [react](https://npm.io/package/react.md) ^17.0.2
- [moment](https://npm.io/package/moment.md) ^2.29.1
- [react-dom](https://npm.io/package/react-dom.md) ^17.0.2
- [web-vitals](https://npm.io/package/web-vitals.md) ^1.1.2
- [font-awesome](https://npm.io/package/font-awesome.md) ^4.7.0
- [react-scripts](https://npm.io/package/react-scripts.md) 4.0.3
- [@babel/polyfill](https://npm.io/package/@babel/polyfill.md) ^7.12.1
- [vista-table-react](https://npm.io/package/vista-table-react.md) ^1.1.0
- [@testing-library/react](https://npm.io/package/@testing-library/react.md) ^11.2.7
- [@testing-library/jest-dom](https://npm.io/package/@testing-library/jest-dom.md) ^5.15.0
- [@testing-library/user-event](https://npm.io/package/@testing-library/user-event.md) ^12.8.3

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 1.1.10 (latest) — 2021-12-12
- 1.1.9 — 2021-12-12
- 1.1.8 — 2021-12-12
- 1.1.7 — 2021-12-11
- 1.1.6 — 2021-12-11
- 1.1.5 — 2021-12-07
- 1.1.4 — 2021-12-02
- 1.1.3 — 2021-12-02
- 1.1.2 — 2021-12-02
- 1.1.1 — 2021-11-24
- 1.1.0 — 2021-11-24
- 1.0.5 — 2021-11-16
- 1.0.4 — 2021-11-16
- 1.0.3 — 2021-11-16
- 1.0.2 — 2021-11-16
- … 2 more at https://npm.io/package/vista-table-react/versions

## README

# Vista Table React
> Vista table react is React table component which can be setup very easily. One can simply use Vista table react and reduce the burden of writing lot many lines of javascript code to achieve table functionality.
---
## Installation
```bash
$ npm i vista-table-react
$ yarn add vista-table-react
```

## Key notes
* Easy installation.
* Quick customization.
* Filter the data very easily, supports type like date, number.
* Pagination
* Classy look for the table.
* Table with 3 themes available --> Classic, Dark and Basic
* [Coders Point Team](mailto:coderz.point01@gmail.com?subject=[GitHub]%20Vista%20Table%20React) is ready to help and resolve the issue whenever needed.
---
## Implementation instructions
```javascript
import React from "react";
import { VistaTable } from "vista-table-react";

const ReactComponent = () => {
    const SAMPLE_HEADER = [
        {key:"date_column", title: "Date", type: "date", format: "DD/MM/YYYY", sorting: false},
        {key:"column1", title: "Column 1", filter: false},
        {key:"column2", title: "Column 2", type: "number"},
        {key:"column3", title: "Column 3", filter: true}
    ];

    const CONFIG = {
        pagination: true,
        itemsPerPage: 8,
        filter: true,
        sorting: true
    }
    const SAMPLE_DATA = [
        {"date_column":"1/6/2021", "column1":"Test", "column2":5,"column3":"sample 1"},
        {"date_column":"2/6/2021", "column1":"Test1", "column2":6,"column3":"sample 2"},
        {"date_column":"3/6/2021", "column1":"Test2", "column2":7,"column3":"sample 2"},
    ];
    return (
        <VistaTable headers={SAMPLE_HEADER} data={SAMPLE_DATA} className="classic" config={CONFIG}/>
    );
}
export default ReactComponent;
```
---
Props details

Props |	Oject Keys | Accepted Values | Default values |	Description
------------ | ------------- | ------------ | ------------- | -------------
#header | #Array of Object | | |	Array of headers to be passed as props. Below is the accepted array key valye pairs
 .| key | string | Mandatory* | unique value
 .| title | string | Mandatory* |title to show in the column name
 .|filter |	boolean -> true/false |	true |	false if filter is not needed for column
 .|sort |	boolean -> true/false |	true |	false if sorting is not required for column
 .| hidden |	boolean -> true/false |	false |	true if column need to be hidden (in-progress)
 .| type |	string -> string, number, date | string |	type of the column
 .| format |	string | DD/MM/YYYY	| format of the date if the type is date
#data |	# Array of object | | |			Array of objects matching the key in header (key) --> [{"key":""}]
#className | string | classic/dark/empty	| |	style for the table "classic" for classic table, "" for basic table,  "dark" for dark theme
#config	|   # Object	| | |		
.|pagination |	boolean -> true/false |	false |	set to true if Pagination is required
.|itemsPerPage |	number |Mandatory* if pagination is true |	tells the number of rows per page
.|filter |	boolean -> true/false |	false |	set to true if filter is required for table
.|sorting |	boolean -> true/false |	false | set to true if sorting is required for table
---
## Demo 
I'm sure I will develop a better demo page, but for now a simple demo page is [here.](https://gi435.csb.app/) to show the vista table look and feel.
>Feel free to [contact us](mailto:coderz.point01@gmail.com?subject=[GitHub]%20Vista%20Table%20React%20Support) for any help.
---
## Contributors
[Coderz Point](mailto:coderz.point01@gmail.com?subject=[GitHub]%20Vista%20Table%20React%20Support)

## License
Licensed under MIT

---
_Source: https://npm.io/package/vista-table-react · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
