Skip to main content

clearSheet()

Description

Clears a sheet

Usage

clearSheet(id?: string): void;

Parameters

  • id - (optional) the id of a sheet to be cleared. If not specified, the method clears the currently active sheet

Example

const spreadsheet = new dhx.Spreadsheet("spreadsheet", {
// config parameters
});
// clears the sheet by its id
spreadsheet.clearSheet("u1636003130922");
// clears the currently active sheet
spreadsheet.clearSheet();

Changelog: Added in v4.2

Related articles: Clearing sheets

Related sample: Spreadsheet. Clear