SpreadJS Documentation
text Method
The button's content.
Gets or sets the button's content.
Syntax
var instance = new GcSpread.Sheets.ButtonCellType();
var returnValue; // Type: string
returnValue = instance.text(value);
function text( 
   value : string
) : string;

Parameters

value
The button's content.

Return Value

The content.
Example
This example creates a button cell.
var cellType = new GcSpread.Sheets.ButtonCellType();
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

ButtonCellType class

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.