diff --git a/api-generator/components/datatable.js b/api-generator/components/datatable.js index c8e4253bb..1093b5d2f 100644 --- a/api-generator/components/datatable.js +++ b/api-generator/components/datatable.js @@ -777,6 +777,21 @@ const DataTableEvents = [ type: "object", description: "Row data to edit." }, + { + name: "event.newData", + type: "object", + description: "New row data after editing." + }, + { + name: "event.value", + type: "object", + description: "Field value of row data to edit." + }, + { + name: "event.newValue", + type: "object", + description: "Field value of new row data after editing" + }, { name: "event.field", type: "string", @@ -836,30 +851,9 @@ const DataTableEvents = [ description: "Row data to edit." }, { - name: "event.field", - type: "string", - description: "Field name of the row data." - }, - { - name: "event.index", - type: "number", - description: "Index of the row data to edit." - } - ] - }, - { - name: "cell-edit-save", - description: "Callback to invoke when cell edit is saved.", - arguments: [ - { - name: "event.originalEvent", + name: "event.newData", type: "object", - description: "Browser event" - }, - { - name: "event.data", - type: "object", - description: "Row data to edit." + description: "New row data after editing." }, { name: "event.field", @@ -874,8 +868,8 @@ const DataTableEvents = [ ] }, { - name: "cell-edit-cancel", - description: "Callback to invoke when cell edit is cancelled.", + name: "row-edit-save", + description: "Callback to invoke when row edit is saved.", arguments: [ { name: "event.originalEvent", @@ -887,6 +881,42 @@ const DataTableEvents = [ type: "object", description: "Row data to edit." }, + { + name: "event.newData", + type: "object", + description: "New row data after editing." + }, + { + name: "event.field", + type: "string", + description: "Field name of the row data." + }, + { + name: "event.index", + type: "number", + description: "Index of the row data to edit." + } + ] + }, + { + name: "row-edit-cancel", + description: "Callback to invoke when row edit is cancelled.", + arguments: [ + { + name: "event.originalEvent", + type: "object", + description: "Browser event" + }, + { + name: "event.data", + type: "object", + description: "Row data to edit." + }, + { + name: "event.newData", + type: "object", + description: "New row data after editing." + }, { name: "event.field", type: "string", diff --git a/src/views/datatable/DataTableDoc.vue b/src/views/datatable/DataTableDoc.vue index f57315e41..cdc661722 100755 --- a/src/views/datatable/DataTableDoc.vue +++ b/src/views/datatable/DataTableDoc.vue @@ -2352,6 +2352,9 @@ export default {