SpreadJS Documentation
GC.Spread.Sheets Namespace / CellTypes type / SelectionMode Field
In This Topic
    SelectionMode Field
    In This Topic
    Specifies the text selection mode for buttonList cells.
    Syntax
    var value; // Type: SelectionMode
    value = GC.Spread.Sheets.CellTypes.SelectionMode;
    var SelectionMode : SelectionMode;
    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.selectionMode(GC.Spread.Sheets.CellTypes.SelectionMode.single);
    activeSheet.getCell(2, 2).cellType(cellType2);
    See Also

    Reference

    CellTypes type