SpreadJS 13
GC.Spread.Sheets.CellTypes Namespace / ButtonList type / itemSpacing Method
the space for two items in the buttonList.
In This Topic
    itemSpacing Method
    In This Topic
    Gets or sets the space for two items in the buttonList.
    Syntax
    var instance = new GC.Spread.Sheets.CellTypes.ButtonList();
    var returnValue; // Type: any
    returnValue = instance.itemSpacing(value);
    function itemSpacing( 
       value : object
    ) : any;

    Parameters

    value
    the space for two items in the buttonList.

    Return Value

    If no value is set, returns the space for two items in the buttonList; otherwise, returns the buttonList cellType.
    Example
    //This example creates a buttonList cell.
    var cellType2 = new GC.Spread.Sheets.CellTypes.ButtonList();
    cellType2.items([{text:"a",value:1},{text:"b",value:2},{text:"c",value:3}]);
    cellType2.itemSpacing({
         horizontal:80,
         vertical:20
    });
    See Also

    Reference

    ButtonList type