Summary
Tip
For a really practical example of drag-and-drop at work, be
sure to check out ""Drag-and-Drop with the Tree" in Chapter 15, where drag-and-drop is applied to
the problem of manipulating the Tree dijit. The Tree is a phenomenal piece of engineering
and dnd only makes it
better!
After reading this chapter, you should be able to:
Construct unconstrained
Moveableobjects and drag them around on the screenDefine constraints for
Moveableobjects to control their behaviorBe able to implement
SourceandTargetcontainers to create collections of items that can be dragged and dropped to/from/within one anotherCreate custom avatars to communicate with the user when a drop operation is about to occur
Use
dojo.connectanddojo.subscribeto receive event notifications for drag-and-drop objects
Next, we'll cover animation and special effects.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access