Search
ListContainer.itemMouseLeave Event
See Also
 






Raised when a mouseleave event occurs in an item's element.

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

 Syntax

JavaScript  Copy Code

EventDispatcher itemMouseLeave

 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 handles the itemMouseLeave event of a ListView object. The ListView class derives from ListContainer.

JavaScript  Copy Code

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


function itemMouseLeaveEventHandler(sender, args)
{
 if(args.item.title == "Room A")
 {
     //do something
 }
}

 See Also