dragdrop.addDrag
description
Adding a feature to the element to be draggable.
syntax
getDragDrop(ELEMENT_NAME).addDrag()
notes
example(s)
@newDragDrop("dd", "bungee")@ .log()@ .addDrop( getCanvas("listOfWords") , getCanvas("gap-0") , getCanvas("gap-1") )$ .addDrag( getText("sentence") , getText("illustrate") , getText("dummy") )@ .swap( getCanvas("gap-0"), getCanvas("gap-1") )@ .offset('0.5em','0em', getCanvas("gap-0"), getCanvas("gap-1"))@ .wait(@ self.test.dropped(getCanvas("gap-0"),getCanvas("gap-1"))@ )
- Adding draggable feature to the text with the ID of “sentence”.