The Button represents a button cell. A button cell can be useful if you want to use Spread to add even more input on your page without having to add external controls.
To create a button cell, follow this example:
var b1 = new GC.Spread.Sheets.CellTypes.Button();
sheet.setCellType(3, 2, b1, GC.Spread.Sheets.SheetArea.viewport);
You can customize your Button using the many provided APIs. If you want to control the button's position in the cell, use the following methods.
You can use the text method to get and set the button's content. Use the buttonBackColor method to get and set the button's background color. For example: