Search
InteractionEventArgs Class
See Also
 






Contains the arguments passed to handlers of interaction-related events.

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

 Syntax

JavaScript  Copy Code

// class
InteractionEventArgs.prototype = {}

 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
  }
}

 Inheritance Hierarchy

MindFusion.Common.UI.EventArgs
    MindFusion.Common.UI.CancelEventArgs
        MindFusion.Common.UI.InteractionEventArgs

 See Also