Initializes a new instance of the NotifyCollectionChangedEventArgs class.
Namespace: MindFusion.Common
File: Events.js
JavaScript Copy Code |
---|
function NotifyCollectionChangedEventArgs (action, [changes, [index]]) |
NotifyCollectionChangedAction. The action that caused the event.
Type: Array
Array. The items affected by the change.
Type: Number
Number. The index where the change occurred.
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"); ................... markers.decorations.collectionChanged.addEventListener(handleCollectionChanged);
|