SpreadJS Documentation
DefaultDataValidator Method
GC.Spread.Sheets Namespace > DataValidation type : DefaultDataValidator Method
The condition.
Represents a data validator.
Syntax
var value; // Type: any
value = GC.Spread.Sheets.DataValidation.DefaultDataValidator(condition);
function DefaultDataValidator( 
   condition : Condition
) : any;

Parameters

condition
The condition.
Example
//This example validates the cell data.
spread.options.highlightInvalidData = true;
var dv = new GC.Spread.Sheets.DataValidation.createTextLengthValidator(GC.Spread.Sheets.ConditionalFormatting.ComparisonOperators.greaterThan, 5);
activeSheet.setDataValidator(0, 0, 1, 1, dv, GC.Spread.Sheets.SheetArea.viewport);
activeSheet.setValue(0, 0, "abcf");
See Also

Reference

DataValidation type