We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e443d8 commit e39e34eCopy full SHA for e39e34e
README.md
@@ -65,10 +65,26 @@ data () {
65
| @click | |
66
| @sort | |
67
68
-### Item template
+### Cell template
69
70
+Cell template is used to get access to list data as well as to indexing/sorting params generated by plugin.
71
72
+Template's scope contains:
73
74
+`props.item` - list item value
75
+`props.index` - initial index of the item
76
+`props.sort` - current index of an item after sorting
77
+`props.remove()` - method that will remove item from the arrey and resport list.
78
+
79
+Example:
80
81
+```
82
+<template slot="cell" scope="props">
83
+ <div @click="() => { props.remove() }">
84
+ <div>Data: {{props.item}}</div>
85
+ <div>{{props.index}} / {{props.sort}}</div>
86
+</template>
87
88
89
### Roadmap
90
0 commit comments