Invokes a transform function on each item and returns theminimum value in a sequence of numbers.
Namespace: MindFusion.Common.Collections
File: IEnumerable.js
JavaScript Copy Code |
---|
function min (selector) |
Type: function
function. A transform function to invoke on each element.
Type: Number
Number. The minimum number in the sequence.
The following code handles the selectionChanged event of a ListView to check if the min selected item is greater than 10:
JavaScript Copy Code |
---|
listView.selectionChanged.addEventListener(listSelectionChanged); function listSelectionChanged(sender, args) if( args.newItems.min() > 10) |