adds an item to the store
obj | object | the item object |
index | number | the item position |
id | the item id |
function addData() {
$$("data").add({
title: document.getElementById("title").value,
year: document.getElementById("year").value
},0)
}
An example for Pivot can be as follows:
$$('pivot').add({
some:"some string",
other:123
}, 0);