Skip to content

Drag and drop element in multiple containers, with element add and remove support.

Notifications You must be signed in to change notification settings

chemzqm/movearound

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Movearound

Move elements in multiple containers. The element for dragging could be added dynamicly and also the container could be added dynamically.

Demo

Installation

Install with npm:

$ npm install movearound

API

new Movearound(el, className , [handler])

Initialize Movearound with every containers has class className in node el.

If the handler is set to true, elmenet has className handler would be used for dragging.

bind()

Initialize or rebind all the drag and drop events.

Every node as the direct children of every container would become moveable around all the containers.

unbind()

Unbind all the D&D events.

remove()

unbind the events and remove the event listeners.

Inspired by https://github.com/yields/sortable

License

MIT

About

Drag and drop element in multiple containers, with element add and remove support.

Resources

Stars

Watchers

Forks

Packages

No packages published