Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当一个节点被删除时,它会进入 TreePanel 中的 beforenodedrop 事件
但是当节点无效时会发生什么?它不会掉落,因此不会通知 beforenodedrop 事件
这是什么活动??????有人可以告诉我吗??????
非常感谢提前问候
在无效删除后对树节点进行一些处理:
Ext.tree.TreeDragZone 中有一个方法,覆盖该方法:
Ext.override(Ext.tree.TreeDragZone, { afterRepair:function(){ // Code to be processed on node after an invalid drop this.dragging = false; }, getRepairXY : function(e){ return false; } });
希望对某人有所帮助。
问候