diff --git a/docs/demos/15-editing/index.html b/docs/demos/15-editing/index.html index 14c18365..0bca5c1b 100644 --- a/docs/demos/15-editing/index.html +++ b/docs/demos/15-editing/index.html @@ -801,6 +801,10 @@

Editing

} ] }) + + table.on('editable.save.cell', (newValue, oldValue, row, column) => { + console.log(`cell is saved: newValue=${newValue}, oldValue=${oldValue}, row=${row}, column=${column}`) + }) } resetTable() document.getElementById("modal").addEventListener("input", _event => { diff --git a/docs/documentation/Events.md b/docs/documentation/Events.md index bed13058..9412905e 100644 --- a/docs/documentation/Events.md +++ b/docs/documentation/Events.md @@ -108,4 +108,19 @@ dataTable.on('datatable.sort', function(column, direction) { Fires when the `.update()` method is called. ### `datatable.update:before` -Fires before the `.update()` method is called. \ No newline at end of file +Fires before the `.update()` method is called. + +### `editable.init` +Fires when the editor is initialized. + +### `editable.save.cell` +Fires when the cell is saved (even when the value is not actually updated). + +### `editable.save.row` +Fires when the row is saved. + +### `editable.context.open` +Fires when the context menu is opened. + +### `editable.context.close` +Fires when the context menu is closed. \ No newline at end of file