Skip to content

ui-component/draggable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

make any element draggable.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •