Wijmo UI for the Web
Characters

To enable masked input, set the mask option to a mask string composed of one or more placeholders and literals. The following table lists available placeholders:

Masking Element Description
0 Digit, required. This element will accept any single digit between 0 and 9.
9 Digit or space, optional.
# Digit or space, optional. Plus (+) and minus (-) signs are allowed.
L Letter, required. Restricts input to the ASCII letters a-z and A-Z. This mask element is equivalent to [a-zA-Z] in regular expressions.
? Letter, optional. Restricts input to the ASCII letters a-z and A-Z. This mask element is equivalent to [a-zA-Z]? in regular expressions.
& Character, required.
C Character, optional. Any non-control character.
A Alphanumeric, required.
a Alphanumeric, optional.
. Decimal placeholder. The actual display character used will be the decimal placeholder appropriate to the culture option.
, Thousands placeholder. The actual display character used will be the thousands placeholder appropriate to the culture option.
: Time separator. The actual display character used will be the time placeholder appropriate to the culture option.
/ Date separator. The actual display character used will be the date placeholder appropriate to the culture option.
$ Currency symbol. The actual character displayed will be the currency symbol appropriate to the culture option.
Shift down. Converts all characters that follow to lowercase.
> Shift up. Converts all characters that follow to uppercase.
| Disable a previous shift up or shift down.
\\ Escape. Escapes a mask character, turning it into a literal.
The escape sequence for a backslash is: \\\\
All other characters Literals. All non-mask elements appear as themselves within wijinputmask. Literals always occupy a static position in the mask at run time, and cannot be moved or deleted by the user.

See Also

Widgets

Reference

 
Support Options