如何在节点删除后捕获删除事件?

How to cath the drop event AFTER the node drop?

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 函数之后更新。

如何获取新节点父节点?

已解决(ExtJS 6.2.x)。

drop: function (node, data, overModel, dropPosition) {
    var thisIsTheMovedNode = data.records[0];
    var thisIsTheNewParentNodeData = overModel.data;
    var thisIsTheOldParentNodeData = data.records[0].parentNode;
}

新的父节点 ID 为:overModel.data.id;