Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Desmaisons committed Jun 25, 2017
2 parents 301f812 + 832b82b commit e6a8ae6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ HTML:
### Slots
Use the `footer` slot to add none-draggable element inside the vuedraggable component.
Important: it should be used in conjunction with draggable option to tag draggable element.
Note that footer slot will always be added after the default slot.
Ex:
``` html
Expand Down
6 changes: 3 additions & 3 deletions documentation/Vue.draggable.for.ReadME.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
##For Vue.js 1.0
## For Vue.js 1.0

Use it exactly as v-for directive, passing optional parameters using 'options' parameter.
Options parameter can be json string or a full javascript object.
Expand All @@ -9,7 +9,7 @@ Options parameter can be json string or a full javascript object.
</div>
```

###Limitation
### Limitation

* This directive works only when applied to arrays and not to objects.
* `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:
Expand All @@ -19,7 +19,7 @@ Options parameter can be json string or a full javascript object.
console.log('Collection updated!');
},
```
###fiddle
### fiddle
Simple:
https://jsfiddle.net/dede89/j62g58z7/

Expand Down

0 comments on commit e6a8ae6

Please sign in to comment.