fires before sending data for item deletion
id | id | old id of related item |
details | object | object which holds state of data saving |
dp.attachEvent("onBeforeDelete", function(id, details){
//... some code here ...
});
1 . The id parameter contains old (client-side) item ID.
2 . The details parameter contains data saving details, namely:
Note that returning false from the event handler will suppress request to the server:
const processor = webix.dp("$datatable1");
processor.attachEvent("onBeforeDelete", () => {
// cancel server request
return false;
})
Related sample: DataProcessor: Canceling Server Request