Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmalonenz committed Mar 18, 2016
2 parents 1ac59ac + ab4b018 commit 6b41b33
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Aurelia-Dragula is intended to be an [Aurelia](https://aurelia.io) plugin
# Aurelia-Dragula

aurelia-dragula is an [Aurelia](https://aurelia.io) plugin which provides a simple (but not simplistic) library to add drag and drop functionality.

Because of the way Aurelia works, I have decided to fork [Dragula](https://github.com/bevacqua/dragula) and make it a bit more friendly to the framework.

Expand All @@ -18,6 +20,8 @@ import {Dragula} from 'aurelia-dragula';
let dragula = new Dragula();
```

Because of the way aurelia works, it is recommended that the `dragend` event is subscribed to and `cancel` is then called, doing the manipulation of the view-models in JavaScript and letting aurelia re-render the changes. This is not only recommended, but vital inside of a `repeat.for`.

###Options
`import {Options} from 'aurelia-dragula;`

Expand Down

0 comments on commit 6b41b33

Please sign in to comment.