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