Skip to content

Commit 72db2d2

Browse files
committed
Merge branch 'master' of https://github.com/euvl/vue-js-grid
2 parents 0f5633d + 6b41450 commit 72db2d2

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### vue-js-grid
1+
## Vue.js Grid
22

33
#### Fixed size grid for Vue.js
44

@@ -67,18 +67,21 @@ data () {
6767
6868
### Cell template
6969
70-
Cell template is used to get access to list data as well as to indexing/sorting params generated by plugin.
70+
Cell template is used to get access to list data, indexing and sorting params generated by plugin.
7171
7272
Template's scope contains:
7373
74-
`props.item` - list item value
74+
`props.item` - list item value
75+
7576
`props.index` - initial index of the item
77+
7678
`props.sort` - current index of an item after sorting
79+
7780
`props.remove()` - method that will remove item from the arrey and resport list.
7881
7982
Example:
8083
81-
```
84+
```vue
8285
<template slot="cell" scope="props">
8386
<div @click="() => { props.remove() }">
8487
<div>Data: {{props.item}}</div>

0 commit comments

Comments
 (0)