Skip to content

Commit 69bacb1

Browse files
authored
Update README.md
1 parent a7b680f commit 69bacb1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,22 +61,22 @@ Plugin does **NOT** modify the source data array.
6161
6262
| Name | Type | Default | Description |
6363
| --- | --- | --- | --- |
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 |
6868
| 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` |
7070
| center | Boolean | false | @TODO |
7171
7272
### Events
7373
7474
| Name | Description |
7575
| --- | --- |
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 |
8080
8181
### Cell template
8282

0 commit comments

Comments
 (0)