afterAdd
fires after adding a new item into a data collection
afterAdd: (newItem: object) => void;
Parameters:
newItem: object
- the object of an added item
Example
component.data.events.on("afterAdd", function(newItem){
console.log("A new item is added");
});