SpreadJS Documentation
Setting a Background Image

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 GcSpread.Sheets.Spread($("#ss").get(0),{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

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.