TextEdit
The TextEdit component renders a single-line text input for Dataverse string columns.
<TextEdit ColumnName="ppp_name" />
Text Field Type
Set TextFieldType to change the input type. Options include Text (default), Email, Password, Tel, Url, Search, Number, and Color. The browser applies native formatting and validation for each type.
<TextEdit ColumnName="emailaddress1" TextFieldType="TextFieldType.Email" />
<TextEdit ColumnName="telephone1" TextFieldType="TextFieldType.Tel" />
Length Constraints
Use MinLength and MaxLength to enforce text length constraints. MaxLength is automatically populated from the column metadata if not explicitly set.
<TextEdit ColumnName="ppp_name" MinLength="3" MaxLength="100" />
TextEdit
Here is an example that demonstrates the use of a TextEdit component.
TextEdit (Extended Properties)
This demonstrates the most common the properties that are availabe to set on the TextEdit.
TextEdit Class
Parameters
Name | Type | Default | Description |
|---|---|---|---|
Autocomplete | bool | False | Enables browser autocomplete for the text edit. |
ChildContent | RenderFragment? | Child content of the component | |
ColumnName | string | Column logical name to bind the editor to from the table record. | |
Description | string? | Description to be displayed in the tooltip. | |
Disabled | bool? | Should the editor be disabled. | |
DisplayLabelWhenAvailable | bool | True | Specifies whether to display a lable if available. |
DisplayTooltipWhenAvailable | bool | True | Specifies whether to display a tooltip if available. |
DisplayValidationErrorMessage | bool | True | Should a validation error message be displayed when the component fails validation? |
IsVisible | bool | True | Is the editor visible. |
Label | string? | Text to be displayed as a label for the editor. | |
MaxLength | int? | Max length of the allowable string. | |
MinLength | int? | Max length of the allowable string. | |
ReadOnly | bool? | Should the editor be read-only. | |
Required | bool? | Should the value be required. | |
Rows | int? | When specified, determines the number of rows that the control will occupy. | |
TextFieldType | TextFieldType | Text | Type of field for the text edit |
Value | string? | Value of the control. |
Name:
AutocompleteType:
bool
Default:
False
Description:
Enables browser autocomplete for the text edit.
Name:
ChildContentType:
RenderFragment?
Description:
Child content of the component
Name:
ColumnNameType:
string
Description:
Column logical name to bind the editor to from the table record.
Name:
DescriptionType:
string?
Description:
Description to be displayed in the tooltip.
Name:
DisabledType:
bool?
Description:
Should the editor be disabled.
Name:
DisplayLabelWhenAvailableType:
bool
Default:
True
Description:
Specifies whether to display a lable if available.
Name:
DisplayTooltipWhenAvailableType:
bool
Default:
True
Description:
Specifies whether to display a tooltip if available.
Name:
DisplayValidationErrorMessageType:
bool
Default:
True
Description:
Should a validation error message be displayed when the component fails validation?
Name:
IsVisibleType:
bool
Default:
True
Description:
Is the editor visible.
Name:
LabelType:
string?
Description:
Text to be displayed as a label for the editor.
Name:
MaxLengthType:
int?
Description:
Max length of the allowable string.
Name:
MinLengthType:
int?
Description:
Max length of the allowable string.
Name:
ReadOnlyType:
bool?
Description:
Should the editor be read-only.
Name:
RequiredType:
bool?
Description:
Should the value be required.
Name:
RowsType:
int?
Description:
When specified, determines the number of rows that the control will occupy.
Name:
TextFieldTypeType:
TextFieldType
Default:
Text
Description:
Type of field for the text edit
Name:
ValueType:
string?
Description:
Value of the control.
Events
Name | Type | Description |
|---|---|---|
ValueChanged | EventCallback<ColumnValueBase> | Gets or sets a callback that updates the bound value. |
Name:
ValueChangedType:
EventCallback<ColumnValueBase>
Description:
Gets or sets a callback that updates the bound value.
Methods
Name | Parameters | Type | Description |
|---|---|---|---|
GetValidationErrors | List<string> | Returns a collection of the current validation errors. |
Name:
GetValidationErrorsType:
List<string>
Description:
Returns a collection of the current validation errors.
