Search
ObservableCollection Class
See Also
 






Represents a collection of arbitrary objects.

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

 Syntax

JavaScript  Copy Code

// class
ObservableCollection.prototype = {}

 Example

The following code creates an ObservableCollection with products.

JavaScript  Copy Code

var product1 = new Object();
product1.title = "Ford";
product1.price = 25345;

var product2 = new Object();
product1.title = "BMW";
product1.price = 75300;
......
.....

List products = new List([product1, product2, ...]);

 Inheritance Hierarchy

MindFusion.Common.Collections.IEnumerable
    MindFusion.Common.Collections.List
        MindFusion.Common.Collections.ObservableCollection

 See Also