Skip to main content

DxMaskedInput<T>.Value Property

Specifies the Masked Input value.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public T Value { get; set; }

Property Value

Type Description
T

A delegate method that accepts the editor value type as a parameter.

Remarks

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