Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

make any element draggable.

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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.