Class DHTMLSuite.dragDrop

Object
   |
   +--DHTMLSuite.dragDrop

class DHTMLSuite.dragDrop


Purpose of class: A general drag and drop class. By creating objects of this class, you can make elements on your web page dragable and also assign actions to element when an item is dropped on it. A page should only have one object of this class.

IMPORTANT when you use this class: Don't assign layout to the dragable element ids Assign it to classes or the tag instead. example: If you make

dragable, don't assign css to #dragableBox1. Assign it to div or .aBox instead.
(demo 1, demo 2), demo 3, demo 4 and demo 5)
Defined in dhtml-suite-for-applications.js

Author: Alf Magne Kalleland(www.dhtmlgoodies.com)
Version: 1.0 , 1.0


Field Summary
 Object currentZIndex
          
 Object dragDropTimer
          
 Object dragInProgress
          
 Object dragObjCloneArray
          
 Object dragX_allowed
          
 Object dragY_allowed
          
 Object moveBackBySliding
          
 Object numericIdToBeDragged
          
 Object objectIndex
          
 Object okToStartDrag
          
 
Constructor Summary
DHTMLSuite.dragDrop ()
           
 
Method Summary
 void addSource(sourceId,slideBackAfterDrop,xAxis,yAxis,dragOnlyWithinElId)
           Add dragable element
 void addTarget(targetId,functionToCallOnDrop)
           Add drop target
 void init()
           Initialize the script This method should be called after you have added sources and destinations.
 void setSlide(isSlidingAnimationEnabled)
           Activate or deactivate sliding animations.

Field Detail

currentZIndex

Object currentZIndex

dragDropTimer

Object dragDropTimer

dragInProgress

Object dragInProgress

dragObjCloneArray

Object dragObjCloneArray

dragX_allowed

Object dragX_allowed

dragY_allowed

Object dragY_allowed

moveBackBySliding

Object moveBackBySliding

numericIdToBeDragged

Object numericIdToBeDragged

objectIndex

Object objectIndex

okToStartDrag

Object okToStartDrag

Constructor Detail

DHTMLSuite.dragDrop

DHTMLSuite.dragDrop()

Method Detail

addSource

void addSource(sourceId,slideBackAfterDrop,xAxis,yAxis,dragOnlyWithinElId)

addTarget

void addTarget(targetId,functionToCallOnDrop)

init

void init()

setSlide

void setSlide(isSlidingAnimationEnabled)


Documentation generated by JSDoc on Mon Oct 8 10:17:27 2007