SpreadJS Documentation
SpreadJS Documentation / Sample Code / Sample Code for Rows and Columns / Changing the Header Size
In This Topic
    Changing the Header Size
    In This Topic

    You can change the height and width of the headers.

    Using Code

    This example changes the column header height and row header width.

    JavaScript
    Copy Code
    $(document).ready(function () 
    {
        var spread = 
        new GC.Spread.Sheets.Workbook(document.getElementById("ss"),{sheetCount:3});
        var sheet = spread.getActiveSheet();
        
        // Change the column header height.
        sheet.setRowHeight(0, 90.0,GC.Spread.Sheets.SheetArea.colHeader);
        
       // Change the row header width.
        sheet.setColumnWidth(0, 90.0,GC.Spread.Sheets.SheetArea.rowHeader);
    }); 
    
    See Also