SpreadJS Documentation
GC.Spread.Sheets.CellTypes Namespace / CheckBox class / CheckBox Constructor
In This Topic
    CheckBox Constructor
    In This Topic
    Represents a check box cell.
    Syntax
    var instance = new GC.Spread.Sheets.CellTypes.CheckBox();
    function CheckBox() : CheckBox;
    Example
    This example creates a checkbox cell.
    var cellType1 = new GC.Spread.Sheets.CellTypes.CheckBox();
    cellType1.caption("caption");
    cellType1.textTrue("true");
    cellType1.textFalse("false");
    cellType1.textIndeterminate("indeterminate");
    cellType1.textAlign(GC.Spread.Sheets.CellTypes.CheckBoxTextAlign.bottom);
    cellType1.isThreeState(true);
    activeSheet.getCell(1, 1).cellType(cellType1);
    See Also

    Reference

    CheckBox class