I tried to implement my own logic which would allow me to drag & drop nodes even when the tree is filtered but I cannot do it as the onNodeDrop event doesn't tell me if the dragged node is being inserted before/on/after target node. Is there a way to get the information? I've checked the source code and this is all the information provided by the event:
Code: Select all
let dropParams = { ...this.createDropPointEventMetadata(<number>position) };
this.tree.onNodeDrop.emit({
originalEvent: event,
dragNode: dragNode,
dropNode: this.node,
index: this.index,
accept: () => {
this.processPointDrop(dropParams);
}
});