Answer the question
In order to leave comments, you need to log in
How to get neighboring elements in Fancytree?
There is a script:
wwwendt.de/tech/fancytree/demo/#sample-ext-dnd.html
and a plugin for it:
https://github.com/mar10/fancytree/wiki/ExtDnd
there is a 'dragDrop' movement completion event in which passed some node, data . And according to the idea, exhaustive information can be drawn from them. But if the documentation was written by a Chinese, or I'm skiing on asphalt. HZ.
I can't figure out how to get the previous element, the next element, and the parent of the moved element.
I have nestedSets and I need this data to change it in the database with ajax.
Answer the question
In order to leave comments, you need to log in
Figured it out myself:
function(node, data) {
// data.otherNode.key - что двигаем
// node.key - относительно чего двигаем
// data.hitMode - как именно (after, before, over)
})
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question