<basedragimage>

JavaScript: lz.basedragimage
extends <view> » <node> » lz.Eventable »
the visual representation of an object being dragged. See <checkdragstate> for usage details

Attributes

Name Type (tag) Type (js) Default Category
dropgroup string String droptarget read/write
  the group that drop targets will register with
source expression any null read/write
  the view where the drag was initiated (read-only)

Methods

startdrag()
basedragimage.startdrag(src, xoffset, yoffset);
called to start the drag action, called by checkdrag
Parameter Name Type Description
src    
xoffset    
yoffset    

stopdrag()
basedragimage.stopdrag();
called to stop the drag action, called by checkdrag. If this is not over a drop target, it animates back to its origin (failed drop). Otherwise it disappears (successful drop).

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy