Search
IEnumerable.remove Method
See Also
 






Removes an element from the collection.

Namespace: MindFusion.Common.Collections
File: IEnumerable.js

 Syntax

JavaScript  Copy Code

function remove (item)

 Parameters

item

Object. The object to remove.

 Example

The following code checks if an item called _item is contained within the collection of items of a ListView after it has changed and if yes, removes it.

JavaScript  Copy Code

istView.selectionChanged.addEventListener(listSelectionChanged);


function listSelectionChanged(sender, args)
{

     if( args.newItems.items().contains(_item))
     {
             args.newItems.items().remove(_item);
     }
}

 See Also