Skip to main content

afterRemove

Fires after removing an item/items from a data collection

afterRemove: (removedItem: IDataItem, batch: IDataItem[], index: number) => void;

Parameters:

  • removedItem: object - the object of a removed item
  • batch: array - an array of removed items
  • index: number - the index of the removed item within the batch

Example

component.data.events.on("afterRemove", function(removedItem, batch, index){
console.log("Items are removed");
});