The new PCIbex Farm is here! Be sure to check out all of its new features and changes.

Link Search Menu Expand Document

dragdrop.addDrop

description

Adding a feature to the element to be droppable.

syntax

getDragDrop(ELEMENT_NAME).addDrop()

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 droppable feature to the canvas “listOfWords”.