Skip to main content

afterAdd

fires after adding a new item into a data collection

afterAdd: (newItem: any) => 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");});