SpreadJS Documentation
backgroundImage Method
The row background image.
Gets or sets the background image for the row.
Syntax
var instance = new GcSpread.Sheets.Row(sheet, index, sheetArea);
var returnValue; // Type: string
returnValue = instance.backgroundImage(value);
function backgroundImage( 
   value : string
) : string;

Parameters

value
The row background image.

Return Value

The row background image.
Example
This example sets the background image.
var cellImage = document.getElementById("circle").src;
var rowImage = "./css/images/quarter1.png";
var colImage = document.getElementById("logo").src;
sheet.getCell(3, 3).backgroundImage(cellImage);
sheet.getRow(1).backgroundImage(rowImage);
sheet.getColumn(1).backgroundImage(colImage);
...
<img src="./css/images/box3.png" id="logo"/>
<img src="./css/images/greencircle.png" id="circle"/>
This example sets the background images for cells in a row.
activeSheet.getRow(1).backgroundImage("images/example.jpg");
See Also

Reference

Row type
Adding a Background Image

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.