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.jsAuthor: Alf Magne Kalleland(www.dhtmlgoodies.com)
Version: 1.0 , 1.0
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.
|
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
DHTMLSuite.dragDrop
DHTMLSuite.dragDrop()
Author: Alf Magne Kalleland(www.dhtmlgoodies.com)
Version: 1.0 , 1.0
addSource
void addSource(sourceId,slideBackAfterDrop,xAxis,yAxis,dragOnlyWithinElId)
Parameters:
String
- sourceId = Id of source
boolean
- slideBackAfterDrop = Slide the item back to it's original location after drop.
boolean
- xAxis = Allowed to slide along the x-axis(default = true, i.e. if omitted).
boolean
- yAxis = Allowed to slide along the y-axis(default = true, i.e. if omitted).
String
- dragOnlyWithinElId = You will only allow this element to be dragged within the boundaries of the element with this id.
addTarget
void addTarget(targetId,functionToCallOnDrop)
Parameters:
String
- targetId = Id of drop target
String
- functionToCallOnDrop = name of function to call on drop. Input to this the function specified in functionToCallOnDrop function would be id of dragged element id of the element the item was dropped on. mouse x coordinate when item was dropped mouse y coordinate when item was dropped
init
void init()
Initialize the script
This method should be called after you have added sources and destinations.
setSlide
void setSlide(isSlidingAnimationEnabled)
Activate or deactivate sliding animations.
Parameters:
boolean
- isSlidingAnimationEnabled = Move element back to orig. location in a sliding animation
Documentation generated by
JSDoc on Mon Oct 8 10:17:27 2007