Working with the WinJS.Binding.List Object

If you want to be notified whenever a change is made to an array of items—in other words, you want to work with an observable collection—then you should use the WinJS.Binding.List object.

The WinJS.Binding.List object wraps a standard JavaScript array in a new object and adds additional methods and events to support change notifications. The WinJS.Binding.List object supports the following events:

Image iteminserted—Triggered when a new item is added to the list.

Image itemchanged—Triggered when an item in the list ...

Get Windows® 8.1 Apps with HTML5 and JavaScript Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.