diff --git a/api-reference/10 UI Components/CollectionWidget/1 Configuration/onItemDeleted.md b/api-reference/10 UI Components/CollectionWidget/1 Configuration/onItemDeleted.md index baf7ea665f..584bf64c9f 100644 --- a/api-reference/10 UI Components/CollectionWidget/1 Configuration/onItemDeleted.md +++ b/api-reference/10 UI Components/CollectionWidget/1 Configuration/onItemDeleted.md @@ -26,5 +26,8 @@ The removed item's data. ##### field(e.itemIndex): Number | Object The removed item's index. +##### field(e.model): Object +Model data. Available only if you use Knockout. + --- Note that the **itemDeleted** event is raised only if an item is deleted using the appropriate method of the UI component or end-user interaction. If you delete an item from an observable array passed to the **dataSource** or **items** property, the UI component entirely reloads the items array without raising the **itemDeleted** and **itemDeleting** events. \ No newline at end of file diff --git a/api-reference/10 UI Components/CollectionWidget/1 Configuration/onItemDeleting.md b/api-reference/10 UI Components/CollectionWidget/1 Configuration/onItemDeleting.md index 600ade47a1..f07df0bfd4 100644 --- a/api-reference/10 UI Components/CollectionWidget/1 Configuration/onItemDeleting.md +++ b/api-reference/10 UI Components/CollectionWidget/1 Configuration/onItemDeleting.md @@ -29,6 +29,9 @@ The data of the item to be removed. ##### field(e.itemIndex): Number | Object The item's index. +##### field(e.model): Object +Model data. Available only if you use Knockout. + --- You can cancel item deletion by setting the handler parameter's **cancel** field to **true**. This field also accepts a Promise (jQuery or native), which enables you to perform an asynchronous action before an item is deleted. diff --git a/api-reference/10 UI Components/CollectionWidget/1 Configuration/onItemReordered.md b/api-reference/10 UI Components/CollectionWidget/1 Configuration/onItemReordered.md index 3de7e7b9d5..ae584b563e 100644 --- a/api-reference/10 UI Components/CollectionWidget/1 Configuration/onItemReordered.md +++ b/api-reference/10 UI Components/CollectionWidget/1 Configuration/onItemReordered.md @@ -29,6 +29,9 @@ The reordered item's data. ##### field(e.itemIndex): Number | Object The index of the item after reordering. This field holds the same value as **toIndex**. +##### field(e.model): Object +Model data. Available only if you use Knockout. + ##### field(e.toIndex): Number The item's current index.