property sourceBox

(r/o) box sourceBox;

Typ

Zugriff

This property returns the box that we are dragging.
<box on:dragDrop="onDragDrop();"/>

function onDragDrop()
{
    var eventObj = shell.currentEvent;
    if (eventObj && eventObj.targetBox && eventObj.sourceBox)
    {
        // move the box we are dragging under the targetBox
        eventObj.targetBox.addChild(eventObj.sourceBox);
    }
}