<basedragimage>

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

Attributes

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

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(ignore);
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).
Parameter Name Type Description
ignore    

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy