Drag-and-Drop Effects
From Documentation
There are two levels to customize the drag-and-drop effects: per-widget and browser-level.
Per-Widget Customization
Browser-level Customization
DnD provides a collection of drag-and-drop utilities. By customizing it, all widgets in the same browser will be affected.
For example, if you would like customize ghosting" of the DOM element being dragged, you could override DnD.ghost(Draggable, Offset, String) as follows.
var superghost = zk.DnD.ghost;
zk.DnD.ghost = function (drag, ofs, msg) {
if (msg != null)
return superghost(drag, ofs, msg);
//do whatever you want
}
Version History
Version | Date | Content |
---|---|---|