# grid-for-grid

> ``` Many thanks to dwqs (https://www.npmjs.com/~dwqs) for his table v2-table (https://www.npmjs.com/package/v2-table). ``` -----------------------------------------------------------

Latest version **0.1.9** (published 2018-08-21) · 0 weekly downloads

## Install

```sh
npm install grid-for-grid
pnpm add grid-for-grid
yarn add grid-for-grid
bun add grid-for-grid
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.9 |
| Published | 2018-08-21 |
| First published | 2018-08-15 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Unpacked size | 1.9 MB |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| Maintainers | wirquz |

## Links

- npm: https://www.npmjs.com/package/grid-for-grid
- npm.io page: https://npm.io/package/grid-for-grid

## Dependencies (9)

- [vue](https://npm.io/package/vue.md) ^2.5.16
- [less](https://npm.io/package/less.md) ^3.8.0
- [vuex](https://npm.io/package/vuex.md) ^3.0.1
- [vue-router](https://npm.io/package/vue-router.md) ^3.0.1
- [less-loader](https://npm.io/package/less-loader.md) ^4.1.0
- [highlight.js](https://npm.io/package/highlight.js.md) ^9.12.0
- [lodash.findindex](https://npm.io/package/lodash.findindex.md) ^4.6.0
- [beautify-scrollbar](https://npm.io/package/beautify-scrollbar.md) ^1.0.8
- [github-markdown-css](https://npm.io/package/github-markdown-css.md) ^2.10.0

## Recent versions

- 0.1.9 (latest) — 2018-08-21
- 0.1.8 — 2018-08-20
- 0.1.7 — 2018-08-20
- 0.1.6 — 2018-08-20
- 0.1.5 — 2018-08-20
- 0.1.0 — 2018-08-15

## README

#grid-for-grid
```
Many thanks to dwqs (https://www.npmjs.com/~dwqs) for his table v2-table (https://www.npmjs.com/package/v2-table).
```
-----------------------------------------------------------

## Install:
```
npm install --save grid-for-grid
npm install --save beautify-scrollbar
```
-----------------------------------------------------------

###Global Register:
```
import Vue from 'vue';
import 'beautify-scrollbar/dist/index.css';
import 'grid-for-grid/dist/grid2.css';
import Grid from 'grid-for-grid';

Vue.use(Grid);
```
-----------------------------------------------------------

###For use:
```
<div>
  <grid :headers="headers" :rows="rows" :options="options"></grid>
</div>

Where:

headers - list with headers's properties: label, prop, width, fixed, align, sortable

Example:

headers:[
{label:'Date', prop:'date'},
{label:'Name', prop:'name', width:'100', fixed:'left'},
{label:'Address', prop:'address', width:'150', align:'right'},
{label:'Birthday', prop:'birthDay'},
{label:'Songs', prop:'songs', width:'100',sortable:true}]

rows - list with rows's properties

Example:

rows:[{
  date: '2017-12-02',
  name: 'test1',
  address: 'Shenzhen,China',
  birthDay: '1988-09-08',
  songs: 3
},
{
  date: '2017-12-027',
  name: 'test2',
  address: 'Shenzhen,China',
  birthDay: '1988-07-05',
  songs: 5
}]

Options - options of table (now is just height)

Example:

options:{
  table_height:600
}
```

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