<< Examples

Sheetname- string sheetname: 'super-worksheet' ... OR any string besides "id"

Name Position Age Salary
Thor Walton Regional Director 45 $98,540
Travis Clarke Software Engineer 30 $275,000
Suki Burks Office Manager 22 $67,670
$441,210

export the table to .xlsx and look at the sheetname of the downloaded file. Compared to the export from the defaults table above, you will notice that, sheetname: 'super-worksheet'creates a worksheet with the same name as the provided string (super-worksheet) instead of the table element's id.


Sheetname- falsey sheetname: false ... OR any falsey: false|null|undefined|"" value

Name Position Age Salary
Thor Walton Regional Director 45 $98,540
Travis Clarke Software Engineer 30 $275,000
Suki Burks Office Manager 22 $67,670
$441,210

export the table to .xlsx and look at the sheetname of the downloaded file. Compared to the export from the defaults table above, you will notice that, sheetname: false uses a fallback value for the sheetname; the fallback (or default) can be configured with the (defaultSheetname prototype property).

NOTE: defaultSheetname is also used for sheetname: 'id' if the export table element does NOT have an id attribute.