Search
InteractionEventArgs.action Property
See Also
 






Gets the action associated with the event.

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

 Syntax

JavaScript  Copy Code

get action() {}

 Property Value

InteractionType. One of the InteractionType enumeration values.

 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