ASP.NET Pack Programmer's Guide
NotifyCollectionChangedEventArgs.newItems Property
See Also
 





Gets the list of new items involved in the change.

Namespace: MindFusion.Mapping
Package: Events.js

 Syntax

JavaScript  Copy Code

Object.defineProperty(NotifyCollectionChangedEventArgs.prototype, "newItems", { value: Array });

 Property Value

Array. The list of involved items.

 Example

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

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(marker1))
      {
          //do something
      }
}

 See Also

NotifyCollectionChangedEventArgs Members
NotifyCollectionChangedEventArgs Class
MindFusion.Mapping Namespace