Skip to content

Commit

Permalink
Revert "Regenerate without hidden CollectionWidget events (3)"
Browse files Browse the repository at this point in the history
This reverts commit 32c3180.
  • Loading branch information
mpreyskurantov committed Nov 12, 2023
1 parent 6bc4ab7 commit 764d9e3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -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 (<a href="http://api.jquery.com/Types/#Promise" target="_blank">jQuery</a> or <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise" target="_blank">native</a>), which enables you to perform an asynchronous action before an item is deleted.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 764d9e3

Please sign in to comment.