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






Provides data for CollectionChanging events.

Namespace: MindFusion.Common
File: Events.js

 Syntax

JavaScript  Copy Code

// class
NotifyCollectionChangingEventArgs.prototype = {}

 Example

The following code handles the collectionChanging 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.collectionChanging.addEventListener(handleCollectionChanging);


function (handleCollectionChanging) (sender, args )
{
     if(args.action == m.NotifyCollectionChangedAction.Add)
     {
          args.cancel = true;
     }
}

 Inheritance Hierarchy

MindFusion.Common.EventArgs
    MindFusion.Common.CancelEventArgs
        MindFusion.Common.NotifyCollectionChangingEventArgs

 See Also

NotifyCollectionChangingEventArgs Members
MindFusion.Common Namespace