Skip to main content

DxRegExMaskProperties.PlaceholdersVisible Property

Specifies whether Masked Input displays placeholders for Regular Expression masks.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(true)]
[Parameter]
public bool PlaceholdersVisible { get; set; }

Property Value

Type Default Description
Boolean true

true to display placeholders; otherwise, false.

Remarks

The default value is an underscore (_). To hide placeholders, set the PlaceholdersVisible property to false.

<DxMaskedInput @bind-Value="Value"
               Mask="[A-Z]{3}-[0-9]{2}"
               MaskMode="@MaskMode.RegEx">
    <DxRegExMaskProperties PlaceholdersVisible="false" />
</DxMaskedInput>

@code{
    String Value { get; set; }
}

To specify a custom placeholder character, use the PlaceholdersVisible property.

See Also