SpreadJS Documentation
Setting the Number of Sheets
SpreadJS Documentation > Sample Code > Sample Code for the Sheet > Setting the Number of Sheets

You can specify the number of sheets.

Using Code

This example sets the number of sheets.

JavaScript
Copy Code

$(document).ready(function () {
    var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"),{sheetCount:3});


    //Set the number of sheets to 5.
    spread.setSheetCount(5);
});