dragdrop.removeDrag

description

Makes the specified elements no longer draggable.

syntax

getDragDrop(ELEMENT_NAME).removeDrag()

notes


example(s)

@    newDragDrop("dd", "bungee", "swap")@        .addDrag(getCanvas("dot"),getCanvas("otherdot"))@        .addDrop(getCanvas("start"),getCanvas("end"))$        .removeDrag(getCanvas("dot"),getCanvas("otherdot"))@        .offset(0, getCanvas("start"))@        .offset(50, getCanvas("end"))@        .drop(getCanvas('dot'),getCanvas('start')) @        .callback(@            newText("feedback","Good job! Now make sure that Red is on Start and Blue is on End")@                .css("background-color","lightgray")@               .print("center at 50vw", "middle at 50vh")@           ,@            newTimer(3000).start().wait()@            ,@            getText("feedback").remove()@        )
  • Makes canvas “dot” no longer draggable.