var instance; // Type: wijmo.input.IFormatValidateLib; var returnValue; // Type: bool // Parameters var value; // Type: string var format; // Type: any var minLength; // Type: any var maxLength; // Type: any returnValue = instance.validateText(value, format, minLength, maxLength);
Parameters
- value
- The string value to validate as text.
- format
- The formatting string to use in validating the value.
For the full list of supported format keywords, see Text Format Keywords. - minLength
- The minumum number of characters to accept as valid input.
- maxLength
- The maximum number of characters to accept as valid input.
Return Value
Returns a bool indicating whether the string value is within the specified length or in the specified format.