My issue is the folowing.
I'm using igTree to manage the chapters in a tree. I'm using the drag and drop cool feature to reach this objective. I'm facing an issue when i want to drag & drop a node between two nodes. I would like to know how to detect this igTree behaviour in order to do some controls.
Thanks for your help.
Stéphane
Hello SLC75000,
Thank you for posting in our community.
In order to detect the drag and drop operation that is currently performed, I would suggest you to handle nodeDropping event of the tree and through ui.helper you may get reference to the helper for the drag operation and check whether it contains "Move between" string. For instance:
nodeDropping: function (evt, ui) { if (ui.helper.text().indexOf("Move between")!=-1) { // your code here } }
nodeDropping: function (evt, ui) {
if (ui.helper.text().indexOf("Move between")!=-1) {
// your code here
}
Please let me know if this helps you achieving what you want and if you have any further questions.
Sincerely,
Tsanna
Hi,
I have the same issue. Will 2014.1 provide a better possibility? I think the solution provided in the answer is a bit poor. What if you work with localized messages?
Thanks in advance
Michael