Search
InteractionEventArgs Constructor
See Also
 






Initializes a new instance of the InteractionEventArgs class.

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

 Syntax

JavaScript  Copy Code

function InteractionEventArgs (rawEventArgs, action)

 Parameters

rawEventArgs

Object. The Javascript event data.

action

InteractionType. The action associated with the event.

 Example

The following code creates a ListView from a div element with an id "nodeList" that is defined in HTML. It handles the itemDragStart event, which receives event data through the InteractionEventArgs class.

JavaScript  Copy Code

var ui = MindFusion.Common.UI;

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


function nodeDragStart(sender, args)
{
 if(args.action == InteractionType.Resize)
  {
      //do something
  }
}

 See Also