You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://github.com/SortableJS/Vue.Draggable/issues?q=is%3Aopen+is%3Aissue)
events are called when respectivelly onStart, onAdd, onRemove, onUpdate, onEnd, onChoose, onSort, onClone are fired by Sortabe.js with the same argument.<br>
137
-
[See here for reference](https://github.com/RubaXa/Sortable#event-object-demo)
138
138
139
-
The OnMove callback is mapped with the [move prop](https://github.com/SortableJS/Vue.Draggable/blob/master/README.md#move)
events are called when respectivelly onStart, onAdd, onRemove, onUpdate, onEnd, onChoose, onSort, onClone are fired by Sortabe.js with the same argument.<br>
143
+
[See here for reference](https://github.com/RubaXa/Sortable#event-object-demo)
144
+
145
+
Note that SortableJS OnMove callback is mapped with the [move prop](https://github.com/SortableJS/Vue.Draggable/blob/master/README.md#move)
140
146
141
-
Ex:
142
147
HTML:
143
148
```HTML
144
149
<draggable :list="list" @end="onEnd">
145
150
```
146
151
147
-
###Fiddle
152
+
* change event
153
+
154
+
`change` event is trigerred when list prop is not null and the corresponding array is altered due to drag-and-drop operation.<br>
155
+
This event is called with one argument containing one of the following properties:
156
+
- `added`: contains information of an element added to the array
157
+
- `newIndex`: the index of the added element
158
+
- `element`: the added element
159
+
- `removed`: contains information of an element removed from to the array
160
+
- `oldIndex`: the index of the element before remove
161
+
- `element`: the removed element
162
+
- `moved`: contains information of an element moved within the array
163
+
- `newIndex`: the current index of the moved element
0 commit comments