SpreadJS 13
GC.Spread.Sheets.CellTypes Namespace / Button class
In This Topic
    Button class
    In This Topic
    Represents a button cell.
    Syntax
    var instance = new GC.Spread.Sheets.CellTypes.Button();
    function Button;
    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);
    Inheritance Hierarchy

    Object
       GC.Spread.Sheets.CellTypes.Button

    Constructors
     NameDescription
    public ConstructorRepresents a button cell.  
    Top
    Methods
     NameDescription
    public MethodGets or sets the button's background color.  
    public MethodGets or sets the button's bottom margin in pixels relative to the cell.  
    public MethodGets or sets the button's left margin in pixels relative to the cell.  
    public MethodGets or sets the button's right margin in pixels relative to the cell.  
    public MethodGets or sets the button's top margin in pixels relative to the cell.  
    public MethodGets or sets the button's content.  
    Top
    See Also