SpreadJS Documentation
isThreeState Method
GC.Spread.Sheets.CellTypes Namespace > CheckBox class : isThreeState Method
Whether the check box supports three states.
Gets or sets a value that indicates whether the check box supports three states.
Syntax
var instance = new GC.Spread.Sheets.CellTypes.CheckBox();
var returnValue; // Type: any
returnValue = instance.isThreeState(value);
function isThreeState( 
   value : boolean
) : any;

Parameters

value
Whether the check box supports three states.

Return Value

If no value is set, returns whether the check box supports three states; otherwise, returns the check box cell type.
Example
This example creates a check box 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);
Remarks
The default value is false.
See Also

Reference

CheckBox class