YUI: DragDrop Snap to Grid

This example shows how to use setXConstraint and setYConstraint with the ticks option set to make a DD object snap to a grid.