Name | Type | Default | Description |
AllowPromptAsInput | bool | false | Determines whether promptChar can be entered as valid input by the user. |
AsciiOnly | bool | false | Determines whether the input accepts characters only from the ASCII character set. |
AutoFocus | bool | false | Specifies whether the input should be focused when the page is loaded. |
AutoShowMask | bool | false | Determines whether the mask is shown/hidden on focus/blur even if placeholder is not set. |
CutCopyMaskFormat | MaskedTextBoxCutCopyMaskFormat | MaskedTextBoxCutCopyMaskFormat.ExcludePromptAndLiterals | Determines whether literals and prompt characters are copied to the clipboard on cut/copy operations. |
Disabled | bool | false | Enables or disables the element. |
EnterKeyBehavior | EnterKeyBehavior | EnterKeyBehavior.Submit | Specifies the behavior on "Enter" key press. Default mode is "submit". |
HidePromptOnLeave | bool | false | Determines whether the prompt character in the input mask is hidden when the masked text box isn't focused anymore. |
Hint | string | "" | Sets additional helper text below the element. The hint is visible only when the element is focused. |
IsOverwriteMode | bool | false | Determines whether new user input overwrites the existing input value or not. |
Label | string | "" | Sets label above the element. The label is always visible. |
Locale | string | "en" | Sets or gets the language. Used in conjunction with the property messages. |
Mask | string | "#####" | Defines the mask for the input. |
MaskCompleted | bool | false | Indicates whether all required fields of the mask have been populated or not. |
MaskFull | bool | false | Indicates whether all required and optional fields of the mask have been populated or not. |
MaxLength | int | 5 | Determines the maximum number of characters that the user can enter. |
Messages | object | N/A | Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale. |
Name | string | "" | Sets or gets the name attribute for the element. Name is used when submiting HTML forms. |
Placeholder | string | "" | A string that appears inside the input when there's no value and mask. |
PromptChar | string | "_" | Determines the prompt char that is used for the mask of the element. |
Readonly | bool | false | If the element is readonly, the users cannot iteract with the element. |
RejectInputOnFirstFailure | bool | false | Determines whether the parsing of user input should stop after the first invalid character or not. |
Required | bool | false | Specifies that the input must be filled in before submitting a form |
ResetOnPrompt | bool | false | Determines whether an input character that matches the prompt character should reset the current selected value in the input or not. Applicable only when allowPromptAsInput is enabled. |
ResetOnSpace | bool | false | Determines whether hitting space character resets the currently selected value from the input or not. |
RightToLeft | bool | false | Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. |
SelectAllOnFocus | bool | false | Specifies whether the value of the input will be selected on focus or not. |
TextMaskFormat | MaskedTextBoxTextMaskFormat | MaskedTextBoxTextMaskFormat.ExcludePromptAndLiterals | Determines whether the value of the input should contain or not the prompt/literals of the mask. |
Theme | string | "" | Determines the theme. Theme defines the look of the element |
Unfocusable | bool | false | If is set to true, the element cannot be focused. |
Value | string | "" | Sets or gets the value of the element. |
Validation | object | N/A | Callback function that allows to set custom validation on the value. If the function returns false then the value of the input is treated as not valid. |
Name | Type | Description | Event Detail |
OnChange | EventCallback<Event> | This event is triggered when the value of the Text Box is changed. | dynamic oldValue- The previous value before it was changed., dynamic value- The new value. |
Changed | event MaskedTextBoxChangedEventHandler | This event is triggered when the value of the Text Box is changed. | MaskedTextBoxChangedEventArgs |
OnChanging | EventCallback<Event> | This event is triggered on each key up event of the MaskedTextBox, if the value is changed. | dynamic oldValue- The previous value before it was changed., dynamic value- The new value. |
Changing | event MaskedTextBoxChangingEventHandler | This event is triggered on each key up event of the MaskedTextBox, if the value is changed. | MaskedTextBoxChangingEventArgs |
OnValidation | EventCallback<Event> | This event is triggered if the <b>validation</b> property is set. Indicates whether valiation has passed successfully or not. | dynamic success- A flag inidicating whether the validation was successfull or not. |
Validationed | event MaskedTextBoxValidationedEventHandler | This event is triggered if the <b>validation</b> property is set. Indicates whether valiation has passed successfully or not. | MaskedTextBoxValidationedEventArgs |