Skip to content

Latest commit

 

History

History
34 lines (19 loc) · 443 Bytes

Readme.md

File metadata and controls

34 lines (19 loc) · 443 Bytes

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