onItemRemoved( )

Sets the function that runs when a repeated item is removed.


Use the onItemRemoved() function for code you want to run when repeated items are removed. The callback is triggered when you remove items by setting the value of the data property to an array in which some of the existing item IDs are no longer present or when items are removed based on a dataset that is connected to the repeater.

Note: The onItemRemoved() callback function is not called when the static repeated items that were set in the Editor are removed.



This endpoint does not take any parameters

Response Object

The element on which the event is now registered.

Returns an empty object.

Status/Error Codes

Was this helpful?

Get data from items being removed

Copy Code
1$w("#myRepeater").onItemRemoved( (itemData) => {
2 let itemDataValue = itemData.someProperty;