Donut DragDrop Release
I have used the Yahoo! UI yahoo.js, dom.js and event.js files. I have taken a few ideas from the Yahoo! UI dragdrop.js file but not the general attitude of that or other dragdrop libraries. All the dragdrop libraries I've tried attempt to be everything to everyone and grow larger and less flexible. For example, the minified Yahoo! dragdrop.js is 24 kB but my DragManager.js file minified is only 4kB. The Yahoo! library doesn't allow for easy trimming of the code to only that which is needed. Also the Yahoo! library is less flexible and more difficult to extend than my Donut library.
The Square Donut Proxy example is the simplest implemenation. Just drag and drop.
In the Jelly Donut Proxy example you can use the alt key to select more than one item for dragging.
The code for this dragdrop library is available by SVN with the command
svn co http://dev.michaux.ca/svn/dragdrop
The code is partially documented using JSDoc but JSDoc has deficiencies and cannot pickup all the documenation in the source. You may need to look in the source to see certain documentation.
Update February 10, 2007: This code as been incorporated in Fork
Have something to write? Comment on this article.