O'Reilly logo

YUI 2.8 Learning the Library by Dan Wellman, Daniel Barreiro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

DragDrop classes

Two classes constitute the basis for the DragDrop component. YAHOO.util.DragDrop is the base class for all elements that are to be dragged around. The movement itself is coordinated by YAHOO.util.DragDropMgr, which takes care of juggling the various DragDrop instances around. You are unlikely to create instances of either. DragDropMgr is a singleton so it makes no sense to do so; there is to be only one manager per page coordinating the motion of the other elements. You would not create instances of DragDrop either because it is what in other languages we would call an abstract class meant to be the model for its subclasses. The first of those subclasses—YAHOO.util.DD—allows for drag-and-drop at its most basic level. The supplied ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required