Skip to content

Commit

Permalink
Merge pull request james2doyle#5 from hamstu/master
Browse files Browse the repository at this point in the history
Updated example code.
  • Loading branch information
james2doyle committed Mar 14, 2016
2 parents 204fa9b + 100a25a commit 7fcf864
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions example.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,24 +36,24 @@ <h3>Some Tasks</h3>
<ul>
<li v-for="task in tasks" id="{{ $index }}"
v-drag-and-drop
v-drag-start="handleDragStart"
v-drag-over="handleDragOver"
v-drag-enter="handleDragEnter"
v-drag-leave="handleDragLeave"
v-drag-end="handleDragEnd"
v-drop="handleDrop"
drag-start="handleDragStart"
drag-over="handleDragOver"
drag-enter="handleDragEnter"
drag-leave="handleDragLeave"
drag-end="handleDragEnd"
drop="handleDrop"
>
<input type="checkbox" name="completed[]" value="1" v-bind:checked="task.completed">
<strong>{{ task.title }}</strong>
</li>
</ul>
<pre>{{ loggedEvent }}</pre>
<h3>Some Images</h3>
<div class="image" v-for="image in images" v-drag-and-drop v-drop="handleImageDrop">
<div class="image" v-for="image in images" v-drag-and-drop drop="handleImageDrop">
<img src="" data-src="{{ image.src }}" data-index="{{ $index }}" title="{{ image.name }}" align="left">
</div>
</div>
<script src="http://cdn.jsdelivr.net/vue/1.0.10/vue.min.js"></script>
<script src="http://cdn.jsdelivr.net/vue/1.0.17/vue.min.js"></script>
<script src="vue.drag-and-drop.js"></script>
<script>
/* globals Vue */
Expand Down

0 comments on commit 7fcf864

Please sign in to comment.