Skip to content

Commit

Permalink
Merge branch 'master' of github.com:dzwillia/vue-grid
Browse files Browse the repository at this point in the history
  • Loading branch information
dzwillia committed May 24, 2017
2 parents f55d36b + 3862d64 commit e150409
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ npm install vue2-grid --save
```

### Usage
> All styling for this component is done using [Tachyons.css](https://github.com/tachyons-css/tachyons/). No external CSS files are required at this time.
### ES6

Expand All @@ -38,23 +39,31 @@ Please note that for now he JSON payload must be formatted as follows:

```json
{
columns: [
{ name: "col1" },
{ name: "col2" },
{ name: "col3" },
...
"columns": [
{ "name": "col1" },
{ "name": "col2" },
{ "name": "col3" }
],
rows: [
0: { col1: "Column 1 Value 1", col2: "Column 2 Value 1", col3: "Column 3 Value 1" },
0: { col1: "Column 1 Value 2", col2: "Column 2 Value 2", col3: "Column 3 Value 2" },
0: { col1: "Column 1 Value 3", col2: "Column 2 Value 3", col3: "Column 3 Value 3" },
...
"rows": [
{
"col1": "Column 1 Row 1",
"col2": "Column 2 Row 1",
"col3": "Column 3 Row 1"
},{
"col1": "Column 1 Row 2",
"col2": "Column 2 Row 2",
"col3": "Column 3 Row 2"
},{
"col1": "Column 1 Row 3",
"col2": "Column 2 Row 3",
"col3": "Column 3 Row 3"
}
],
total_count: 1000
"total_count": 1000
}
```

The columns node only needs to be provided on the first call.
The `columns` node only needs to be provided on the first call.

## License
vue-grid is open source and released under the [MIT License](LICENSE).
Expand Down

0 comments on commit e150409

Please sign in to comment.