Skip to content

Commit c900f9d

Browse files
Update documentation
1 parent 2d82216 commit c900f9d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ Two Lists:
1818

1919
https://jsfiddle.net/dede89/hqxranrd/
2020

21-
##Feature
21+
Example with list clone:
22+
23+
https://jsfiddle.net/dede89/u5ecgtsj/
24+
25+
##Features
2226

2327
* Full support of [Sortable.js](https://github.com/RubaXa/Sortable) options via options parameters
2428
* Keeps in sync view model and view
@@ -27,12 +31,19 @@ https://jsfiddle.net/dede89/hqxranrd/
2731
##Usage
2832

2933
Use it exactly as v-for directive, passing optional parameters using 'options' parameter.
34+
Option parameter can be json string or a full javascript object.
3035

3136
``` html
3237
<div v-dragable-for="element in list1" options='{"group":"people"}'>
3338
<p>{{element.name}}</p>
3439
</div>
3540
```
41+
42+
##Limitation
43+
44+
This directive works only when applied to arrays and not to javascript objects.
45+
46+
3647
## Installation
3748
- Available through:
3849
``` js

0 commit comments

Comments
 (0)