Example of Literals and Prompt in Blazor Input Mask Component

Input Mask / Literals and Prompt

This example is used to obtain the component value with mask literals. Type the Alphanumeric characters in the "Product Key" input element.Typed Product Key will be displayed in the label element with mask literals. Choose the corresponding option from the property panel to update the Value and prompt options.

Properties


The Masked Textbox has EnableLiterals property that provides option to obtain the component value with mask literals.

Provided list of options in the property panel for the following cases:

  • PromptPlaceholder - If the user is not filled all the blank spaces in the mask then it will replace them in the Value property. It will work when you are enabled the EnableLiterals option. By default, its value is empty string.
  • PromptCharacter - It's a prompting symbol in the MaskedTextBox for the mask elements. By default, its value is underscore.
Transform your Blazor web apps today with Syncfusion® Blazor components
100+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE