Wijmo UI for the Web
validateMask Method
wijmo.input Namespace > IFormatValidateLib Interface : validateMask Method
The string value to validate.
The string value indicating the mask format that is accepted. For more information about format keywords, please see Mask Format Keywords. The regex mask format is invalid.
Validate the string value according to the specified format string.
Syntax
var instance; // Type: wijmo.input.IFormatValidateLib;
var returnValue; // Type: bool

// Parameters
var value; // Type:  string
var format; // Type:  string

returnValue = instance.validateMask(value, format);
function validateMask( 
   value : string,
   format : string
) : bool;

Parameters

value
The string value to validate.
format
The string value indicating the mask format that is accepted. For more information about format keywords, please see Mask Format Keywords. The regex mask format is invalid.

Return Value

Returns a Boolean value indicating whether the string date value is valid for the specified format.
Example
$.wijinputcore.validateMask("1234567", "999-9999");  // returns: false
Remarks
For more information, see Validation Function Library.
See Also

Reference

IFormatValidateLib Interface