MindFusion.Charting for JavaScript Programmer's Guide
NotifyCollectionChangedEventArgs Class
See Also
 






Provides data for CollectionChanged events.

Namespace: MindFusion.Common
File: Events.js

 Syntax

JavaScript  Copy Code

// class
NotifyCollectionChangedEventArgs.prototype = {}

 Example

The following code handles the collectionChanged event of the decorations property of a DecorationLayer object in a Map.

JavaScript  Copy Code

var m = MindFusion.Mapping;

var markers = new m.DecorationLayer("Images");

...................
//add some Marker-s to the decorations property
......................

markers.decorations.collectionChanged.addEventListener(handleCollectionChanged);


function (handleCollectionChanged) (sender, args )
{
     if(args.newItems.contains(mark))
     {
          //do something
     }
}

 Inheritance Hierarchy

MindFusion.Common.EventArgs
    MindFusion.Common.NotifyCollectionChangedEventArgs

 See Also

NotifyCollectionChangedEventArgs Members
MindFusion.Common Namespace