Clear Up
SharpKit Reference

DD Class

A DragDrop implementation where the linked element follows the mouse cursor during a drag.

Namespace: Ext.dd

Derived Types

Constructors

Name Description
DD(DDConfig)
DD()
DD(Object[])

Methods

Name Description
alignElWithMouse(object, JsNumber, JsNumber) Sets the element to the location of the mousedown or click event, maintaining the cursor location relative to the location on the element that was clicked. Override this if you want to place the element in a location other than where the cursor is.
autoOffset(JsNumber, JsNumber) Sets the pointer offset to the distance between the linked element's top left corner and the location the element was clicked.
cachePosition(object, object) Saves the most recent position so that we can reset the constraints and tick marks on-demand. We need to know this so that we can calculate the number of pixels the element is offset from its original position.
setDelta(JsNumber, JsNumber) Sets the pointer offset. You can call this directly to force the offset to be in a particular location (e.g., pass in 0,0 to set it to the center of the object)
setDragElPos(JsNumber, JsNumber) Sets the drag element to the location of the mousedown or click event, maintaining the cursor location relative to the location on the element that was clicked. Override this if you want to place the element in a location other than where the cursor is.

Properties

Name Description
scroll When set to true, the utility automatically tries to scroll the browser window when a drag and drop element is dragged near the viewport boundary. Defaults to: true
© Copyright 2005-2011 SharpKit. All rights reserved.