Skip to main content

afterSelectionSet

Description​

Fires after cells are selected

Usage​

afterSelectionSet: (cell: string) => void;

Parameters​

The callback of the event takes the following parameters:

  • cell - (required) the id(s) of a cell(s)

Example​

const spreadsheet = new dhx.Spreadsheet("spreadsheet", {});
spreadsheet.parse(data);

// subscribe on the "afterSelectionSet" event
spreadsheet.events.on("afterSelectionSet", function(cell){
console.log("The cells " + spreadsheet.selection.getSelectedCell() + " are selected");
console.log(cell);
});

Related article: Event handling