WinJS.Binding.SortedListProjection object

Applies to Windows and Windows Phone

Do not instantiate. Returned by the createSorted method.

Syntax


var sortedList = list.createSorted(sorter);

Members

The SortedListProjection object has these types of members:

Methods

The SortedListProjection object has these methods.

MethodDescription
getItem

Returns a key/data pair for the specified index.

indexOfKey

Returns the index of the first occurrence of a key.

notifyMutated

Forces the list to send a itemmutated notification to any listeners for the value at the specified index.

setAt

Replaces the value at the specified index with a new value.

 

Properties

The SortedListProjection object has these properties.

PropertyAccess typeDescription

length

Read/write

Gets or sets the length of the list. Returns an integer value one higher than the highest element defined in a list.

 

Remarks

This object inherits from WinJS.Binding.List. You can manipulate a FilteredListProjection using many of the same techniques as a List object.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.Binding

Library

Base.js

 

 

Show:
© 2014 Microsoft