SpreadJS Documentation
buttonBackColor Method
GC.Spread.Sheets.CellTypes Namespace > Button class : buttonBackColor Method
The button's background color.
Gets or sets the button's background color.
Syntax
var instance = new GC.Spread.Sheets.CellTypes.Button();
var returnValue; // Type: any
returnValue = instance.buttonBackColor(value);
function buttonBackColor( 
   value : string
) : any;

Parameters

value
The button's background color.

Return Value

If no value is set, returns the background color; otherwise, returns the button cell type.
Example
This example creates a button cell.
var cellType = new GC.Spread.Sheets.CellTypes.Button();
cellType.buttonBackColor("#FFFF00");
cellType.text("this is a button");
activeSheet.getCell(0, 2).cellType(cellType);
Remarks
The default value is null, which specifies to use the default line gradient color.
See Also

Reference

Button class