SpreadJS Documentation
Deleting a Sheet

You can remove sheets from the widget.

Using Code

This example deletes a sheet.

JavaScript
Copy Code
$(document).ready(function () {
    //Set the number of sheets to 3.
    var spread = new GcSpread.Sheets.Spread($("#ss").get(0),{sheetCount:3});

    $("#button1").click(function(){
        //Delete the second sheet.
        $("#ss").data("spread").removeSheet(1);
    });
});

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.