adds a data item to the dataview
obj | object | the item object |
index | number | optional, the item's position (zero-based numbering) |
// initializing a dataview
var myDataView = new dhtmlXDataView({
container:"data_container",
type:{
template:"Package"
}
});
// adding a new data item to the dataview
myDataView.add({
id:15,
Package:"test one",
Version:"0.1",
Maintainer:"dhtmlx"
}, 0)
Note: