Mask="[0-2][0-9][0-9].[0-2][0-9][0-9].[0-2][0-9][0-9].[0-2][0-9][0-9]|
<SfMaskedTextBox @bind-Value="value" Placeholder="Enter value" Mask="[0-2][0-9][0-9].[0-2][0-9][0-9].[0-2][0-9][0-9].[0-2][0-9][0-9]" FloatLabelType="@FloatLabelType.Always"></SfMaskedTextBox>
|
|
@using Syncfusion.Blazor.Inputs
@using Syncfusion.Blazor.Buttons
<SfMaskedTextBox @ref="MaskObj" Placeholder="Enter value" Mask="[0-2][0-9][0-9].[0-2][0-9][0-9].[0-2][0-9][0-9].[0-2][0-9][0-9]" FloatLabelType="@FloatLabelType.Always"></SfMaskedTextBox>
<SfButton Content="Click to get Mask Value" OnClick="OnClick"></SfButton>
@code {
SfMaskedTextBox MaskObj;
public string maskedValue { get; set; }
public async Task OnClick()
{
maskedValue = await this.MaskObj.GetMaskedValue();
}
} |