Select theme:

Material 3

Mask (Angular)link

This guide demonstrates how to use the Mask component.

Mask Propertieslink

NameTypeDefaultDescription
Namestring'mask' + index suffixUnique name of the Mask.
Valuestring/expressionnullMask value.
PlaceholderstringemptyMask placeholder.
MaskstringnullMask pattern.
SizeintegernullSize of the input field.
MaxlengthintegernullMaximum number of character allows in the input field.
ReadOnlyboolean/expressionfalseIs Mask read-only.
Disabledboolean/expressionfalseIs Mask disabled.
Visibleboolean/expressiontrueIs Mask visible.
autoClearboolean/expressiontrueClears the incomplete value on blur.
unmaskboolean/expressionfalseDefines if ngModel sets the raw unmasked value to bound value or the formatted mask value.

image

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

Angular declarationlink

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

© 2016-2025 Radzen Ltd. All Rights Reserved.
Designed and developed with ❤️ in Radzen Blazor Studio.

Select theme:

Material 3