Drag and Drop

ZK allows a user to drag particular components around within the user interface. For example, dragging files to other directories, or dragging an item to the shopping cart to purchase.

A component is draggable if it can be dragged around. A component is droppable, if a user could drop a draggable component to it.

Note: ZK does not assume any behavior about what shall take place after dropping. It is up to application developers by writing the onDrop event listener.

If an application doesn't nothing, the dragged component is simply moved back where it is originated from.