SpreadJS 13
GC.Spread.Sheets.CellTypes Namespace / CheckBoxList type / items Method
The items for the checkbox list.
In This Topic
    items Method
    In This Topic
    Gets or sets the items for the checkbox list.
    Syntax
    var instance = new GC.Spread.Sheets.CellTypes.CheckBoxList();
    var value; // Type: any
    value = instance.items(items);
    function items( 
       items : Array
    ) : any;

    Parameters

    items
    The items for the checkbox list.

    Return Value

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