Skip to main content

afterRowDelete

caution

The afterRowDelete event has been deprecated in v4.3. The event will continue work, but you'd better apply a new approach:

spreadsheet.events.on("afterAction", (actionName, config) => {
if (actionName === "deleteRow") {
console.log(actionName, config);
}
});

For more details about the new concept, see Spreadsheet actions.

Description

Fires after a row is deleted

Usage

afterRowDelete: (cell: string) => void;

Parameters

The callback of the event takes the following parameters:

  • cell - (required) the id of a cell

Example

const spreadsheet = new dhx.Spreadsheet("spreadsheet", {
// config parameters
});
// subscribe on the "afterRowDelete" event
spreadsheet.events.on("afterRowDelete", function(cell){
console.log("A row was deleted");
console.log(cell);
});

Related articles: Event handling