Spread.Sheets Documentation
Deleting a Sheet
Spread.Sheets Documentation > Sample Code > Sample Code for the Sheet > 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 GC.Spread.Sheets.Workbook(document.getElementById("ss"),{sheetCount:3});


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