Skip to main content

afterFocusSet

Description

Fires after focus is set on a cell

Usage

afterFocusSet: (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 "afterFocusSet" event
spreadsheet.events.on("afterFocusSet", function(cell){
console.log("Focus is set on a cell " + spreadsheet.selection.getSelectedCell());
console.log(cell);
});

Related articles: Event handling