How to determine the which lane/phase a node is currently located?

When we drag and drop a node in swimlane, how do we get the new location of the node based on which lane and which phase it is?

1 Reply 1 reply marked as answer

GG Gowtham Gunashekar Syncfusion Team April 30, 2021 11:37 AM UTC

Hi Wasim, 
 
Please refer the following sample for how to get the dropped node’s target lane id using the drop event. In the sample we have added a drop event, it will trigger whenever the user drop a node into lane. The target property of the drop event argument will return the where the node is being dropped. 
 
Code snippet: 
  public drop(args: IDropEventArgs) { 
    if (args.target && (args.target as SwimLaneModel).isLane) { 
 
      console.log((args.target as Node).id); 
    } 
  } 
 
 
 
Regards, 
Gowtham  


Marked as answer
Loader.
Up arrow icon