SpreadJS 13
GC.Spread.Sheets.CellTypes Namespace / ButtonList type / selectionMode Method
The selected buttonList's select mode.
In This Topic
    selectionMode Method
    In This Topic
    Gets or sets the buttonList's select mode.
    Syntax
    var instance = new GC.Spread.Sheets.CellTypes.ButtonList();
    var returnValue; // Type: any
    returnValue = instance.selectionMode(value);
    function selectionMode( 
       value : SelectionMode
    ) : any;

    Parameters

    value
    The selected buttonList's select mode.

    Return Value

    If no value is set, returns the select mode; otherwise, returns the buttonList cell type.
    Example
    //This example creates a buttonList cell.
    var cellType = new GC.Spread.Sheets.CellTypes.ButtonList();
    cellType.selectionMode(GC.Spread.Sheets.CellTypes.SelectionMode.single);
    activeSheet.getCell(0, 2).cellType(cellType);
    See Also

    Reference

    ButtonList type