blazor-devexpress-dot-blazor-dot-dxmaskedinput-1-4c2a6b29.md
Specifies the Masked Input value.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[Parameter]
public T Value { get; set; }
| Type | Description |
|---|---|
| T |
A delegate method that accepts the editor value type as a parameter.
|
Use the Value property to specify an editor’s value or to bind the value to a data source object:
<DxMaskedInput Value="12.3" Mask="@NumericMask.Currency"></DxMaskedInput>
<DxMaskedInput @bind-Value="@Value" Mask="@NumericMask.Currency"></DxMaskedInput>
@code {
Decimal Value { get; set; } = 15;
}
Make sure the mask pattern fits the editor’s value type. For example, if an editor’s Value has an integer type, the editor only accepts integer values. A user cannot enter a fractional part of a number, even if the editor’s mask supports fractions.
To respond to the value change, handle the ValueChanged event.
The Masked Input supports the following data types:
See Also