Example of Literals and Prompt in Blazor Input Mask Component
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.