Class FormComponentWithAutoComplete<T>
Base class for form input components that support browser autocomplete functionality. Extends FormComponent<T> with properties for controlling browser autocomplete behavior and ARIA autocomplete attributes. Used by input components like RadzenTextBox, RadzenPassword, RadzenNumeric, and RadzenMask. Provides standardized autocomplete behavior for better integration with browser password managers and autofill features.
Inheritance
Inherited Members
Namespace: Radzen
Assembly: Radzen.Blazor.dll
Syntax
public class FormComponentWithAutoComplete<T> : FormComponent<T>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IRadzenFormComponent
Type Parameters
| Name | Description |
|---|---|
| T | The type of the form component's value. |
Constructors
FormComponentWithAutoComplete()
Base class for form input components that support browser autocomplete functionality. Extends FormComponent<T> with properties for controlling browser autocomplete behavior and ARIA autocomplete attributes. Used by input components like RadzenTextBox, RadzenPassword, RadzenNumeric, and RadzenMask. Provides standardized autocomplete behavior for better integration with browser password managers and autofill features.
Declaration
public FormComponentWithAutoComplete()
Properties
AriaAutoCompleteAttribute
Gets the aria-autocomplete attribute's string value.
Declaration
public virtual string AriaAutoCompleteAttribute { get; }
Property Value
| Type | Description |
|---|---|
| string |
AutoCompleteAttribute
Gets the autocomplete attribute's string value.
Declaration
public virtual string AutoCompleteAttribute { get; }
Property Value
| Type | Description |
|---|---|
| string |
|
AutoCompleteType
Gets or sets the browser autocomplete behavior for this input field. Controls whether browsers should offer to autofill this field based on user history or saved data. Common values include On (enable), Off (disable), Username, CurrentPassword, Email, etc.
Declaration
[Parameter]
public virtual AutoCompleteType AutoCompleteType { get; set; }
Property Value
| Type | Description |
|---|---|
| AutoCompleteType | The autocomplete type. Default is On. |
DefaultAriaAutoCompleteAttribute
Gets or sets the default aria-autocomplete attribute's string value.
Declaration
public virtual string DefaultAriaAutoCompleteAttribute { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
DefaultAutoCompleteAttribute
Gets or sets the default autocomplete attribute's string value.
Declaration
public virtual string DefaultAutoCompleteAttribute { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
SetParametersAsync(ParameterView)
Sets the parameters asynchronous.
Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| ParameterView | parameters | The parameters. |
Returns
| Type | Description |
|---|---|
| Task | Task. |