SpreadJS 13
SpreadJS Documentation / Sample Code / Sample Code for the Sheet / Adding a Sheet
In This Topic
    Adding a Sheet
    In This Topic

    You can add sheets to the widget.

    Using Code

    This example adds a sheet.

    Copy Code
    $(document).ready(function ()
        // Set the number of sheets to 3.
        var spread =
        new GC.Spread.Sheets.Workbook(document.getElementById("ss"),
         // Create a new sheet and add it at 2nd position.
         var sheet = new GC.Spread.Sheets.Worksheet();
         sheet.name("The added sheet");
         spread.addSheet(1, sheet);