File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
- ### vue-js-grid
1
+ ## Vue.js Grid
2
2
3
3
#### Fixed size grid for Vue.js
4
4
@@ -67,18 +67,21 @@ data () {
67
67
68
68
### Cell template
69
69
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.
71
71
72
72
Template's scope contains:
73
73
74
- ` props .item ` - list item value
74
+ ` props .item ` - list item value
75
+
75
76
` props .index ` - initial index of the item
77
+
76
78
` props .sort ` - current index of an item after sorting
79
+
77
80
` props .remove ()` - method that will remove item from the arrey and resport list.
78
81
79
82
Example:
80
83
81
- ` ` `
84
+ ` ` ` vue
82
85
< template slot= " cell" scope= " props" >
83
86
< div @click= " () => { props.remove() }" >
84
87
< div> Data: {{props .item }}< / div>
You can’t perform that action at this time.
0 commit comments