Search
ListContainer.itemDrop Event
See Also
 






Raised when a drop operation is finished.

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

 Syntax

JavaScript  Copy Code

EventDispatcher itemDrop

 Event Data

The event handler method receives the following arguments:
sender
A ListContainer instance, which is the source of the event. This object will be passed to the handler function as the first argument.
args
An ItemEventArgs 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 the itemDrop 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 itemDrop event
nodeList.itemDrop.addEventListener(itemDropEventHandler);


function itemDropEventHandler(sender, args)
{
  if(args.item.title == "New Node")
  {
       //event handling code
  }
}

 See Also