Save $100 with our Black Friday deals!

Get $100 OFF with promo code BLACKFRIDAY2024 at checkout until November 30.

See Pricing

Still using Radzen Studio?
Achieve more with Radzen Blazor Studio

Radzen Blazor Studio is our new flagship product and vision of how rapid Blazor application development should be done.

Go to Radzen Blazor Studio

Mask (Angular)

This guide demonstrates how to use the Mask component.

Mask Properties

Name Type Default Description
Name string ‘mask’ + index suffix Unique name of the Mask.
Value string/expression null Mask value.
Placeholder string empty Mask placeholder.
Mask string null Mask pattern.
Size integer null Size of the input field.
Maxlength integer null Maximum number of character allows in the input field.
ReadOnly boolean/expression false Is Mask read-only.
Disabled boolean/expression false Is Mask disabled.
Visible boolean/expression true Is Mask visible.
autoClear boolean/expression true Clears the incomplete value on blur.
unmask boolean/expression false Defines if ngModel sets the raw unmasked value to bound value or the formatted mask value.

For more info about expressions please visit expressions in our documentation.

Angular declaration

<rz-mask #mask0 mask="99-9999" placeholder="Enter here ..." name="mask0">
</rz-mask>