afterSheetChange
Description
Fires after the currently active sheet is changed
Usage
afterSheetChange: (sheet: object) => void;
Parameters
The callback of the event takes the following parameters:
sheet
- (required) an object with the name and id of a newly active sheet
Example
const spreadsheet = new dhx.Spreadsheet("spreadsheet", {});
spreadsheet.parse(data);
// subscribe on the "afterSheetChange" event
spreadsheet.events.on("afterSheetChange", function(sheet) {
console.log("The newly active sheet is " + sheet.name);
console.log(sheet);
});
Changelog: Added in v4.1
Related articles: Event handling