SpreadJS 13
GC.Spread.Sheets.CellTypes Namespace / ButtonList type / maxColumnCount Method
The column count for the buttonList list.
In This Topic
    maxColumnCount Method
    In This Topic
    Gets or sets the items for the buttonList list's column count.
    Syntax
    var instance = new GC.Spread.Sheets.CellTypes.ButtonList();
    var returnValue; // Type: any
    returnValue = instance.maxColumnCount(value);
    function maxColumnCount( 
       value : number
    ) : any;

    Parameters

    value
    The column count for the buttonList list.

    Return Value

    If no value is set, returns the column count; otherwise, returns the buttonList list cellType.
    Example
    //This example creates a buttonList list cell.
    var cellType2 = new GC.Spread.Sheets.CellTypes.ButtonList();
    cellType2.items([{text:"a",value:1},{text:"b",value:2},{text:"c",value:3}]);
    cellType2.maxColumnCount(2);
    activeSheet.getCell(2, 2).cellType(cellType2);
    See Also

    Reference

    ButtonList type