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
<divv-for="element in list">{{element.name}}</div>
34
34
</draggable>
35
35
```
@@ -44,7 +44,7 @@ Array to be synchronized with drag-and-drop. Typically same array as refrenced b
44
44
45
45
Note that draggabe component can be used with a list prop
46
46
47
-
#### option
47
+
#### options
48
48
Type: `Object`<br>
49
49
Required: `true`
50
50
@@ -59,10 +59,13 @@ Called when there equivalent onStart, onAdd, .... are fired by Sortabe.js with t
59
59
60
60
[See here for reference](https://github.com/RubaXa/Sortable#event-object-demo)
61
61
62
+
###Fiddle
63
+
Simple:
64
+
https://jsfiddle.net/dede89/sqssmhtz/
62
65
63
-
##For Vue.js 1.0
66
+
Two Lists:
64
67
65
-
##Usage
68
+
##For Vue.js 1.0
66
69
67
70
Use it exactly as v-for directive, passing optional parameters using 'options' parameter.
68
71
Option parameter can be json string or a full javascript object.
@@ -73,7 +76,7 @@ Option parameter can be json string or a full javascript object.
73
76
</div>
74
77
```
75
78
76
-
##Limitation
79
+
###Limitation
77
80
78
81
* This directive works only when applied to arrays and not to objects.
79
82
*`onStart`, `onUpdate`, `onAdd`, `onRemove` Sortable.js options hooks are used by v-dragable-for to update VM. As such these four options are not usable with v-dragable-for. If you need to listen to re-order events, you can watch the underlying view model collection. For example:
@@ -83,13 +86,7 @@ Option parameter can be json string or a full javascript object.
0 commit comments