Skip to content

Astray-git/vue-dragula

Repository files navigation

vue-dragula

👌 Drag and drop so simple it hurts

Vue wrapper for dragula

install

npm install vue-dragula

Setup

script:

var Vue = require('vue');
var VueDragula = require('vue-dragula');

Vue.use(VueDragula);

template:

<div class="wrapper">
  <div class="container" v-dragula="colOne" bag="first-bag">
    <div v-for="text in colOne" @click="onClick">{{text}} [click me]</div>
  </div>
  <div class="container" v-dragula="colTwo" bag="first-bag">
    <div v-for="text in colTwo">{{text}}</div>
  </div>
</div>