File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -61,22 +61,22 @@ Plugin does **NOT** modify the source data array.
61
61
62
62
| Name | Type | Default | Description |
63
63
| --- | --- | --- | --- |
64
- | items | [Object] | [] | |
65
- | cellWidth | Number | 80 | |
66
- | cellHeight | Number | 80 | |
67
- | draggable | Boolean | false | |
64
+ | items | Array | [] | Initial array of items |
65
+ | cellWidth | Number | 80 | Cell width |
66
+ | cellHeight | Number | 80 | Cell height |
67
+ | draggable | Boolean | false | Flag that will let you drag grid's cells |
68
68
| dragDelay | Number | 0 | @TODO |
69
- | sortable | Boolean | false | |
69
+ | sortable | Boolean | false | Flag that will let you reorder grid's cells, requires ` draggable ` to be ` true ` |
70
70
| center | Boolean | false | @TODO |
71
71
72
72
### Events
73
73
74
74
| Name | Description |
75
75
| --- | --- |
76
- | @change | |
77
- | @remove | |
78
- | @click | |
79
- | @sort | |
76
+ | @change | Occurs on every action that involves reordering array or changing it's length |
77
+ | @remove | Occurs when an element is deleted through template |
78
+ | @click | Occurs when cell is clicked |
79
+ | @sort | Occurs when array item order is changed manually |
80
80
81
81
### Cell template
82
82
You can’t perform that action at this time.
0 commit comments