Initializes a new instance of the ObservableCollection class.
Namespace: MindFusion.Common.Collections
File: ObservableCollection.js
JavaScript Copy Code |
---|
function ObservableCollection ([items]) |
Array. The underlying array data structure of the collection.
The following example creates chart series stored in an ObservableCollection instance:
JavaScript Copy Code |
---|
var series = new Collections.ObservableCollection(); series.add(new Charting.BarSeries( new Collections.List([20, 60, 40, 55]), new Collections.List(["Acer", "Biostar", "Foxconn", "Supermicro"]), new Collections.List(["", "", "", ""]))); |