DxMaskedInput<T>.Mask Property
Specifies a mask pattern.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[Parameter]
public string Mask { get; set; }
Property Value
Type | Description |
---|---|
String | A mask pattern string. |
Remarks
The Masked Input component supports the following mask types:
Assign a mask pattern to the Mask
property to apply a mask to the Masked Input component. The following code snippet applies a regular expression mask:
<DxMaskedInput @bind-Value="Value"
Mask="\d{3,10}"
MaskMode="@MaskMode.RegEx">
<DxRegExMaskProperties Placeholder="Placeholder" />
</DxMaskedInput>
@code{
String Value { get; set; }
char Placeholder = '#';
}
Refer to the following section for more information: Apply a Mask.
See Also