December 5th, 2011 – by Colin Snover
dojo/dnd is one of Dojo’s core APIs and is designed to manage the process of dragging and dropping items between two or more containers. It offers advanced features like multiple selections, item acceptance filtering on drop targets, and other behavioral tweaks. Let’s learn how to use it!
This is an updated version of the original article, Dojo Drag and Drop, Part 1, published in 2008.
Continue reading
Tags: dnd, dojo.dnd
Posted in Dojo | 3 Comments
October 24th, 2008 – by Eugene Lazutkin
A frequently overlooked and underused feature of Dojo’s Drag-and-Drop (DnD) module is drag handles.
DnD is commonly implemented as a set of draggable elements where the entire DnD item (usually a subtree of DOM nodes) can detect the drag action. In some cases, this is not desirable:
- DnD items that contain active elements: links, text areas, buttons, check boxes, other common form elements. The drag action can prevent normal interactions with them, e.g., text selection inside text boxes.
- Large DnD items that occupy most of screen. Frequently these items have collapsed and expanded states, and should not be dragged while expanded.
Continue reading
Tags: dnd, dojo.dnd, drag and drop, drag handles
Posted in Dojo, UI Design | 6 Comments