SpreadJS 13
GC.Spread.Sheets.CellTypes Namespace / ButtonList type / padding Method
The buttonList's padding relative to the cell.
In This Topic
    padding Method
    In This Topic
    Gets or sets the buttonList's padding in pixels relative to the cell.
    Syntax
    var instance = new GC.Spread.Sheets.CellTypes.ButtonList();
    var returnValue; // Type: any
    returnValue = instance.padding(value);
    function padding( 
       value : string
    ) : any;

    Parameters

    value
    The buttonList's padding relative to the cell.

    Return Value

    If no value is set, returns the padding in pixels; otherwise, returns the buttonList cell type.
    Example
    //This example creates a buttonList cell and sets its padding.
    var cellType = new GC.Spread.Sheets.CellTypes.ButtonList();
    cellType.padding("5");
    activeSheet.getCell(0, 2).cellType(cellType);
    activeSheet.setColumnWidth(2, 120.0,GC.Spread.Sheets.SheetArea.viewport);
    activeSheet.setRowHeight(0, 90.0,GC.Spread.Sheets.SheetArea.viewport);
    See Also

    Reference

    ButtonList type