Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.04 KB

File metadata and controls

40 lines (27 loc) · 1.04 KB
sidebar_label afterSheetChange
title afterSheetChange event
description You can learn about the afterSheetChange event in the documentation of the DHTMLX JavaScript Spreadsheet library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Spreadsheet.

afterSheetChange

Description

@short: 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