When we configured our panel and dialog boxes to be draggable or columns to be resizable in previous chapters, that's all we had to do—no additional configuration was required and the library handled everything for us.
Like most of the other library components, when creating your own drag-and-drop elements, there is a range of different options available to you that allow you to tailor those objects to your requirements. These properties, like those of most other library components, can be set using an object literal supplied with the constructor, but in most cases even this is not required.
The most challenging aspects of any drag-and-drop scenario in your web applications are going to center around the design of your specific implementation rather than getting drag-and-drop to work in the first place. This utility is yet another example of the huge benefits the YUI can provide in reducing the amount of coding and troubleshooting that you need to...