PasswordInput Blazor API

PasswordInput Properties

NameTypeDefaultDescription
DisabledboolfalseEnables or disables the element.
Localestring"en"Sets or gets the language. Used in conjunction with the property messages.
MessagesobjectN/ASets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale.
MinLengthint1Determines the minimum number of characters inside the input in order to trigger the autocomplete functionality that will open the drop down and show the matched items.
Namestring""Sets or gets the name attribute for the element. Name is used when submiting data inside an HTML form.
Placeholderstring""Determines the placeholder of the input.
RightToLeftboolfalseSets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts.
Themestring""Determines the theme for the element. Themes define the look of the elements.
UnfocusableboolfalseIf is set to true, the element cannot be focused.
Valuestring""Sets or gets the value of the element.

PasswordInput Methods

NameTypeArgumentsDescription
GetValueAsync()Task<string>'N/A'Gets the &quot;Value&quot; property as Task&lt;string&gt;.
Refreshvoid'N/A'Refreshes the Blazor Component. Performs a layout of the HTML Elements and recalculates the measurements.
Rendervoid'N/A'Re-renders the Blazor Component. This method will make a full re-render.
SelectvoidN/ASelects the text inside the input or if it is <b>readonly</b> then the element is focused.
StateHasChangedvoid'N/A'Refreshes the state and Re-renders the Blazor Component, if necessary.

PasswordInput Events

NameTypeDescriptionEvent Detail
OnChangeEventCallback<Event>This event is triggered when the value is changed and the focus moved out of the element.dynamic oldValue- The previous value., dynamic value- The new value.
Changedevent PasswordInputChangedEventHandlerThis event is triggered when the value is changed and the focus moved out of the element.PasswordInputChangedEventArgs
OnChangingEventCallback<Event>This event is triggered on each key up event of the PasswordInput, if the value is changed.dynamic oldValue- The previous value before it was changed., dynamic value- The new value.
Changingevent PasswordInputChangingEventHandlerThis event is triggered on each key up event of the PasswordInput, if the value is changed.PasswordInputChangingEventArgs