Search
ListContainer.itemDragEnd Event
See Also
 






Raised when a drag operation on an item is finished.

Namespace: MindFusion.Common.UI
File: ListContainer.js

 Syntax

JavaScript  Copy Code

EventDispatcher itemDragEnd

 Event Data

The event handler method receives the following arguments:
sender
A ListItem instance, which is the source of the event. This object will be passed to the handler function as the first argument.
args
An InteractionEventArgs instance, which contains event data. This object will be passed to the handler function as the second argument.

 Example

The following code creates a new ListView and handles its itemDragEnd event. The ListView class derives from ListContainer:

JavaScript  Copy Code

// create the ListView control
var nodeList = new ui.ListView(document.getElementById("nodeList"));

//attach event handler to the dragDrop event
nodeList.itemDragEnd.addEventListener(itemDragEndEventHandler);


function itemDragEndEventHandler(sender, args)
{
  if(args.action == InteractionType.Resize)
  {
       //event handling code
  }
}

 See Also