The InputMask control uses a mask to validate input as the user types. It prevents users from accidentally entering invalid data and formats the input as it is typed.
The mask is specified by the mask property as a string composed of one or more of the following masking characters:
These samples use the WjInputMask component and Angular 2.
In some cases, you may want to get or set the InputMask value excluding the literal and prompt characters. You can do this using the rawValue property as shown below:
Phone number:
Mask: {{inputMaskRaw.mask}}
Value: {{inputMaskRaw.value}}
RawValue: {{inputMaskRaw.rawValue}}
The InputDate and InputTime controls have a mask property that can make data entry easier in some cases.