Icontem

Drag and Drop: Handle drag and drop events of page elements

Recommend this page to a friend!
  Info   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2013-08-15 (3 years ago) RSS 2.0 feedStarStarStar 43%Total: 351 All time: 99 This week: 38Up
Version License JavaScript version Categories
drag-drop 1.0.0GNU General Publi...1.0Events
Description Author

This object can handle drag and drop events of page elements.

It can start listening to mouse events on given page elements to track drag and drop movements.

The can call given callback function when the drag starts, moves or stops.

The movements of the dragged elements can be restricted one of the axis, vertical or horizontal.

The movement positions can be snapped to positions of a given spacing distance between the snap points.

Picture of Mark Rolich
  Performance   Level  
Name: Mark Rolich <contact>
Classes: 13 packages by
Country: Armenia Armenia
Innovation award
Innovation award
Nominee: 6x

Winner: 1x

Details
This Javascript package implements drag-n-drop functionality in a browser.

Supports:
- Moving an element horizontally, vertically and in both directions
- Snap to grid functionality
- Limitation of moving distance
- Registering of user-defined function on start, move and stop

Tested in the following browsers: IE 6.0, FF 17, Chrome 22, Safari 5.1.1

Dragdrop.js requires Event.js package, which can be acquired at the following links:
Github - https://github.com/mark-rolich/Event.js
JS Classes - http://www.jsclasses.org/package/212-JavaScript-Handle-events-in-a-browser-independent-manner.html

Copyright (C) 2012  Mark Rolich
  Files folder image Files  
File Role Description
Accessible without login Plain text file demo.css Data Demo styles
Accessible without login Plain text file demo_advanced.html Data Advanced demo
Accessible without login Plain text file demo_simple.html Data Simple demo
Accessible without login HTML file documentation.html Doc. Documentation
Plain text file Dragdrop.js Class Main function
Accessible without login Image file grid.png Icon background image for advanced demo
Accessible without login Plain text file license.txt Lic. LICENSE
Accessible without login Plain text file README Data README

Downloaddrag-drop-2013-08-15.zip 7KB
Downloaddrag-drop-2013-08-15.tar.gz 4KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
Event Download .zip .tar.gz for cross-browser event handling Required
 Version Control Reuses Unique User Downloads Download Rankings  
 100%2
Total:351
This week:0
All time:99
This week:38Up
 User Ratings  
 
 All time
Utility:66%StarStarStarStar
Consistency:33%StarStar
Documentation:66%StarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:43%StarStarStar
Rank:42