简体   繁体   English

YUI拖放代理拖拽

[英]YUI drag&drop proxy drag

Question for YUI experts... YUI 专家的问题...

I have a table and I've made each cell of the first row draggable by proxy .我有一个表格,并且我已经让第一行的每个单元格都可以通过proxy拖动。 In IE, when the drag proxy is released, the original table cell actually jumps to wherever the release point was.在 IE 中,当拖动代理被释放时,原来的表格单元格实际上会跳转到释放点所在的位置。 How can I prevent this from happening?我怎样才能防止这种情况发生? Essentially, I want to know where the proxy was dropped and handle my logic from there but I don't want the original to move.本质上,我想知道代理被删除的位置并从那里处理我的逻辑,但我不希望原始移动。

You have to override the drop-functions, check for您必须覆盖放置功能,检查

DD::dragOverEvent( )

DD:endDragEvent( )

functions on this reference:此参考的功能:

http://developer.yahoo.com/yui/docs/YAHOO.util.DD.html http://developer.yahoo.com/yui/docs/YAHOO.util.DD.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM