MindFusion.Charting for JavaScript Programmer's Guide
List Constructor
See Also
 






Initializes a new instance of the List class.

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

 Syntax

JavaScript  Copy Code

function List ([items])

 Parameters

items
Optional.

Type: Array
Array. The underlying array data structure of the list.

 Example

The following code creates a List 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, ...]);

 See Also

List Class
MindFusion.Common.Collections Namespace