Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
30
How to get the highlighted parent node values after drag operation?
posted

I am currently using multi Tree model and trying to get the parent node after dragging files from Source Tree. Is there any method avaliable to get the parent node after drag operation?.

I need to send the updated information to server as JSON file

Parents
  • 4315
    Offline posted

    Hi, Kavitha.

    What you can use is the igTree `nodeDropeed` event and its arguments. Here is a demo that is using the event and gets parent node information. You can check all the available properties of the `ui` argument. The code that I have added is the following:

    nodeDropped: function(evt, ui) {
      console.log(ui.path);
      console.log(ui.data);
    }

    I will wait for your feedback. Thank you for using our product!

    Best regards,

    Nikolay Alipiev

    Software Developer

Reply Children