🌐 Blazor - PasswordInput Help API Docs | Blazor Documentation | https://www.htmlelements.com/PasswordInput Blazor API - www.htmlelements.com

PasswordInput Properties

NameTypeDefaultDescription
DisabledboolfalseDetermines whether the element is interactive or inactive. When enabled, the element can be used and respond to user actions; when disabled, the element is not interactive and will not respond to user input.
UnlockKeystring""Sets or retrieves the unlockKey, a unique identifier or code required to unlock and grant access to the product’s features or content.
Localestring"en"Specifies or retrieves the current language setting. This property is typically used together with the messages property to provide localization support, determining which set of translated messages or labels are displayed based on the selected language code (e.g., 'en', 'fr', 'es').
MessagesobjectN/ADefines or retrieves an object containing text strings used throughout the widget interface, enabling support for localization. This property works together with the locale property to display the widget's content in different languages by providing translations for UI elements such as labels, messages, and tooltips.
MinLengthint1Specifies the minimum number of characters a user must type into the input field before the autocomplete feature activates. Once this threshold is reached, the dropdown will open and display a list of items that match the entered text.
Namestring""Specifies or retrieves the value of the element's name attribute. The name attribute is used to identify form fields when submitting data via an HTML form, allowing the data to be sent as key-value pairs where the name serves as the key. This attribute is essential for server-side processing and differentiating between multiple inputs within the same form.
Placeholderstring""Specifies the placeholder text displayed inside the input field when it is empty, providing a hint or example of the expected input value.
RightToLeftboolfalseSets or retrieves a value that specifies whether the element's alignment is configured to support right-to-left (RTL) languages, such as Arabic or Hebrew. When enabled, this ensures that text direction and layout are adjusted appropriately for locales that use RTL scripts.
Themestring""Specifies the visual theme to be applied to the element. Themes control the overall appearance, including colors, fonts, spacing, and stylistic details, ensuring a consistent look and feel across elements.
UnfocusableboolfalseWhen set to true, this property prevents the element from receiving keyboard focus, making it unreachable via the keyboard (e.g., Tab key) and inaccessible by assistive technologies that rely on focus.
Valuestring""Sets a new value for the element or retrieves the current value of the element, depending on how the method or property is used. This is commonly used for form elements such as input fields, textareas, or select elements, allowing you to programmatically update or access their contents.

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/AEnhances the input field interaction by selecting all text within the input when it is editable. If the input is set to <b>readonly</b>, the element receives focus without selecting its text. This ensures intuitive behavior based on the input's current state.
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 of the element has been modified by the user and the element loses focus (i.e., when the user finishes editing and clicks or tabs away from the element).dynamic oldValue- The previous value., dynamic value- The new value.
Changedevent PasswordInputChangedEventHandlerThis event is triggered when the value of the element has been modified by the user and the element loses focus (i.e., when the user finishes editing and clicks or tabs away from the element).PasswordInputChangedEventArgs
OnChangingEventCallback<Event>This event is triggered each time a key is released within the PasswordInput field, but only if the input value has changed as a result of the key press.dynamic oldValue- The previous value before it was changed., dynamic value- The new value.
Changingevent PasswordInputChangingEventHandlerThis event is triggered each time a key is released within the PasswordInput field, but only if the input value has changed as a result of the key press.PasswordInputChangingEventArgs