SpreadJS Documentation
DefaultDataValidator Constructor
The condition.
Represents a data validator.
Syntax
var instance = new GcSpread.Sheets.DefaultDataValidator(condition);
function DefaultDataValidator( 
   condition : object
) : DefaultDataValidator;

Parameters

condition
The condition.
Example
This example validates the cell data.
var textLengthCondition = new GcSpread.Sheets.TextLengthCondition(GcSpread.Sheets.GeneralCompareType.GreaterThan, 5);
var validator = new GcSpread.Sheets.DefaultDataValidator(textLengthCondition)
activeSheet.getCell(0, 0, GcSpread.Sheets.SheetArea.viewport).dataValidator(validator);
spread.highlightInvalidData(true);
activeSheet.setValue(0, 0, "abcf");
See Also

Reference

DefaultDataValidator type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.