make any element draggable.
JavaScript
Pull request Compare This branch is 7 commits ahead, 9 commits behind ui-component:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
.gitignore
History.md
Makefile
Readme.md
component.json
index.js

Readme.md

draggable

make any element draggable.

Installation

$ component install ui-component/draggable

Example

var el = document.querySelector('#el');
var draggable = require('draggable')(el);
draggable.build();

API

draggable(el[, opts])

Create a new Draggable with el and optional opts object.

draggable.build()

bind all events.

draggable.destroy()

unbind all events.

License

MIT