Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
make any element draggable.
branch: master

This branch is 7 commits ahead, 9 commits behind ui-component:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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

Something went wrong with that request. Please try again.