SpreadJS 13
SpreadJS Documentation / Sample Code / Sample Code for Cells / Setting a Background Image
In This Topic
    Setting a Background Image
    In This Topic

    You can specify a background image for a cell.

    Using Code

    This example sets an image in the cell.

    JavaScript
    Copy Code
    $(document).ready(function ()
    {
        var spread =
        new GC.Spread.Sheets.Workbook(document.getElementById("ss"),{sheetCount:3});
        var activeSheet = spread.getActiveSheet();
       
        // Set backgroundImage to cell(1,1).
        activeSheet.getCell(1, 1).backgroundImage("Image file path name");
    });
     
    
    See Also

    Developer's Guide