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






Specifies the type of the collection changed action.

Namespace: MindFusion.Common
File: Events.js

 Syntax

JavaScript  Copy Code

// class
NotifyCollectionChangedAction.prototype = {}

 Example

The following code handles the collectionChanging event of the decorations property of a DecorationLayer object in a MapView instance.

JavaScript  Copy Code

var m = MindFusion.Mapping;

markers.decorations.collectionChanging.addEventListener(handleCollectionChanging);


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

 Inheritance Hierarchy

MindFusion.Common.NotifyCollectionChangedAction

 See Also

NotifyCollectionChangedAction Members
MindFusion.Common Namespace