GcSpread.Sheets Namespace > DefaultDataValidator type : createTextLengthValidator Method |
var value; // Type: DefaultDataValidator value = GcSpread.Sheets.DefaultDataValidator.createTextLengthValidator(typeOperator, v1, v2);
function createTextLengthValidator( typeOperator : ComparisonOperator, v1 : object, v2 : object ) : DefaultDataValidator;
spread.highlightInvalidData(true); var dv = GcSpread.Sheets.DefaultDataValidator.createTextLengthValidator(GcSpread.Sheets.ComparisonOperator.GreaterThan, "4", "20"); dv.showInputMessage = true; dv.inputMessage = "Number of characters must be greater than 4."; dv.inputTitle = "tip"; activeSheet.setDataValidator(1, 1, dv)