change
fires when a data collection is modified
change: (id?: string | number, status?: string, updatedItem?: object) => void;
Parameters:
id: string | number
- the id of an itemstatus: string
- the status of the operation:"add"|"update"|"remove"updatedItem: object
- the object of an updated item
Example
component.data.events.on("change", function(id,status,updatedItem){
console.log("An item is updated");
});