Skip to main content

change

fires when a tree collection is modified

change: (id?: string, status?: Statuses, updatedItem?: any) => void;

Parameters:

  • id: string - the id of an item
  • status: 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");});