0
How to fires event after Drag & Drop on TreePanel如何在節點放下之後放置放置事件?
On an ExtJS drag and drop tree using the drop or beforedrop listeners dont seem to fire
How do I make an ExtJS drag and drop tree be copy only -- not remove items from the display?
我試圖把移動節點的新父:
drop: function (node, data, overModel, dropPosition) {
var theNode = data.records[0];
console.log(theNode.data.parentId);
console.log(theNode.parentNode.id);
},
但:
注1:node
參數不是真正的TreeNode,只是一個HTML標籤。
注2:theNode.parentNode
沒有更新,我正在採取舊的父節點(拖動之前)。它將在drop
函數後更新。
如何獲取新節點父節點?
那種後遺症? –
我認爲推遲是唯一的解決方案,從來沒有看到後的功能,我完全開始討厭sencha的拖放 –