GcSpread.Sheets Namespace > DefaultDataValidator type : createNumberValidator Method |
true
if the validator is set to a number.
var value; // Type: DefaultDataValidator value = GcSpread.Sheets.DefaultDataValidator.createNumberValidator(typeOperator, v1, v2, isIntegerValue);
function createNumberValidator( typeOperator : ComparisonOperator, v1 : object, v2 : object, isIntegerValue : boolean ) : DefaultDataValidator;
true
if the validator is set to a number.spread.highlightInvalidData(true); var dv = GcSpread.Sheets.DefaultDataValidator.createNumberValidator(GcSpread.Sheets.ComparisonOperator.Between, "5", "20", true); dv.showInputMessage = true; dv.inputMessage = "Value must be between 5 and 20."; dv.inputTitle = "tip"; activeSheet.setDataValidator(1, 1, dv);