forked from DevExpress/devextreme-documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Regenerate without hidden CollectionWidget events (3) like 7e…
- Loading branch information
1 parent
8ce703a
commit a15a63b
Showing
3 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
api-reference/10 UI Components/CollectionWidget/1 Configuration/onItemDeleted.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,33 @@ | ||
--- | ||
id: CollectionWidget.Options.onItemDeleted | ||
type: function(e) | ||
default: null | ||
hidden: | ||
--- | ||
--- | ||
##### shortDescription | ||
A function that is executed after a collection item is deleted from the data source. | ||
|
||
##### param(e): Object | ||
Information about the event. | ||
|
||
##### field(e.component): {WidgetName} | ||
The UI component's instance. | ||
|
||
##### field(e.element): DxElement | ||
#include common-ref-elementparam with { element: "UI component" } | ||
|
||
##### field(e.itemData): Object | ||
The removed item's data. | ||
|
||
##### field(e.itemElement): DxElement | ||
#include common-ref-elementparam with { element: "item" } | ||
|
||
##### 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. |
26 changes: 26 additions & 0 deletions
26
api-reference/10 UI Components/CollectionWidget/1 Configuration/onItemDeleting.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
api-reference/10 UI Components/CollectionWidget/1 Configuration/onItemReordered.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,38 @@ | ||
--- | ||
id: CollectionWidget.Options.onItemReordered | ||
type: function(e) | ||
default: null | ||
hidden: | ||
--- | ||
--- | ||
##### shortDescription | ||
A function that is executed after a collection item is moved to another position. | ||
|
||
##### param(e): Object | ||
Information about the event. | ||
|
||
##### field(e.component): {WidgetName} | ||
The UI component's instance. | ||
|
||
##### field(e.element): DxElement | ||
#include common-ref-elementparam with { element: "UI component" } | ||
|
||
##### field(e.fromIndex): Number | ||
The item's previous index. | ||
|
||
##### field(e.itemData): Object | ||
The reordered item's data. | ||
|
||
##### field(e.itemElement): DxElement | ||
#include common-ref-elementparam with { element: "item" } | ||
|
||
##### 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. | ||
|
||
--- |