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

Parameters

value
The button's content.

Return Value

If no value is set, returns the content; 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 an empty string.
See Also

Reference

Button class