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)
}
Object can contain any properties:
$$('mygrid').add({
some:"some string",
other:123,
complex:{
contain:"any",
content:"inside"
}
}, 0);