Adds an item to the collection.
Namespace: MindFusion.Common.Collections
File: ObservableCollection.js
JavaScript Copy Code |
---|
function add (item) |
Object. The item to add.
The following code creates a new List, which derives from ObservableCollection and adds several items to it:
JavaScript Copy Code |
---|
JavaScript Copy Code var product2 = new Object(); List products = new List(); |