Skip to main content

afterColumnDelete

caution

The afterColumnDelete 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 === "deleteColumn") {
console.log(actionName, config)
}
});

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

Description

Fires after a column is deleted

Usage

afterColumnDelete: (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", {});
spreadsheet.parse(data);

// subscribe on the "afterColumnDelete" event
spreadsheet.events.on("afterColumnDelete", function(cell){
console.log("A column was deleted");
console.log(cell);
});

Related articles: Event handling