Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chemzqm/movearound
Drag and drop element in multiple containers, with element add and remove support.
https://github.com/chemzqm/movearound
Last synced: about 1 month ago
JSON representation
Drag and drop element in multiple containers, with element add and remove support.
- Host: GitHub
- URL: https://github.com/chemzqm/movearound
- Owner: chemzqm
- Created: 2013-07-05T05:53:31.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-03-12T19:24:33.000Z (almost 9 years ago)
- Last Synced: 2024-10-29T12:56:29.826Z (about 2 months ago)
- Language: JavaScript
- Size: 77.1 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
Awesome Lists containing this project
README
# Movearound
Move elements in multiple containers. The element for dragging could be added dynamicly and also the container could be added dynamically.
[Demo](http://chemzqm.github.io/movearound/index.html)
## 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
## License
MIT