Name | Type | Default | Description |
AutoFocus | bool | false | Specifies that the element should be focused when the page is loaded. |
Disabled | bool | false | Enables or disables the element. |
EnterKeyBehavior | EnterKeyBehavior | EnterKeyBehavior.Submit | Specifies the behavior on "Enter" key press. Default mode is "submit". |
Form | string | "" | The form that the element is associated with (its "form owner"). The value of the attribute must be the ID of a form element in the same document. |
Hint | object | N/A | Sets additional helper text below the element. Appears only when the element is focused. |
Label | string | "" | Sets label above the element. The label is displayed above the input and it's always visible. |
Locale | string | "en" | Sets or gets the language. Used in conjunction with the property messages. |
MaxLength | int | N/A | Sets or gets the maximum number of characters that the user can enter. |
Messages | object | N/A | Sets an object with string values, related to the different states of passwords strength. |
MinLength | int | 2 | Sets or gets the minimum number of characters that the user can enter. |
Name | string | "" | Sets or gets the name attribute for the element. Name is used when submiting HTML forms. |
PasswordStrength | object | N/A | With this property the user can set a custom callback function that determines the password strength. The returned string from the function determines the how strong the current password is. The string should be one of the following: 'short', 'weak', 'far', 'good', 'strong'. |
Placeholder | string | "" | The placeholder text that is displayed when no value is applied to the element. |
Required | bool | false | Specifies that the user must fill in a value before submitting a form that contains the element. |
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 content of the input will be selected on focus. |
ShowPasswordIcon | bool | false | Determines whether the password icon is visible. |
ShowPasswordStrength | bool | false | Determines whether a tooltip which shows the password's strength will be shown. |
Theme | string | "" | Determines the theme. Theme defines the look of the element |
TooltipArrow | bool | false | Determines whether Tooltip's arrow will be shown or not. |
TooltipDelay | int | 0 | Determines the delay before the tooltip appears in miliseconds. |
TooltipPosition | PasswordTextBoxTooltipPosition | PasswordTextBoxTooltipPosition.Top | Determines the position of the tooltip. |
TooltipTemplate | string | "null" | Sets a custom template for the content of the tooltip. |
Unfocusable | bool | false | If true, the element cannot be focused. |
Value | string | "" | Sets or gets the value of the element. |
Name | Type | Description | Event Detail |
OnChange | EventCallback<Event> | This event is triggered when the value of the element is changed. | dynamic oldValue- The previous value of the element before it was changed., dynamic value- The new value of the element. |
Changed | event PasswordTextBoxChangedEventHandler | This event is triggered when the value of the element is changed. | PasswordTextBoxChangedEventArgs |
OnChanging | EventCallback<Event> | This event is triggered on each key up event of the TextBox, if the value is changed. | dynamic oldValue- The previous value before it was changed., dynamic value- The new value. |
Changing | event PasswordTextBoxChangingEventHandler | This event is triggered on each key up event of the TextBox, if the value is changed. | PasswordTextBoxChangingEventArgs |