Gets the element at the given index.
Namespace: MindFusion.Common.Collections
File: IEnumerable.js
JavaScript Copy Code |
---|
function item (index) |
Number. The index.
Object. The element at the given index.
The following code checks if the old items of a ListView instance, which have changed have an item called item1 at the beginning of the collection:
JavaScript Copy Code |
---|
listView.selectionChanged.addEventListener(listSelectionChanged);
if( args.oldItems[0] == item1) |