SpreadJS 13
SpreadJS Documentation / Sample Code / Sample Code for the Sheet / Setting the Number of Sheets
In This Topic
    Setting the Number of Sheets
    In This Topic

    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);
    });