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.

Example

TextEdit (Extended Properties)

This demonstrates the most common the properties that are availabe to set on the TextEdit.

Example
Readonly? Required? Disabled? ColorEmailNumberPasswordSearchTelTextUrl

TextEdit Class

Parameters

Name
Type
Default
Description
Autocompletebool
False
Enables browser autocomplete for the text edit.
ChildContentRenderFragment?
Child content of the component
ColumnNamestring
Column logical name to bind the editor to from the table record.
Descriptionstring?
Description to be displayed in the tooltip.
Disabledbool?
Should the editor be disabled.
DisplayLabelWhenAvailablebool
True
Specifies whether to display a lable if available.
DisplayTooltipWhenAvailablebool
True
Specifies whether to display a tooltip if available.
DisplayValidationErrorMessagebool
True
Should a validation error message be displayed when the component fails validation?
IsVisiblebool
True
Is the editor visible.
Labelstring?
Text to be displayed as a label for the editor.
MaxLengthint?
Max length of the allowable string.
MinLengthint?
Max length of the allowable string.
ReadOnlybool?
Should the editor be read-only.
Requiredbool?
Should the value be required.
Rowsint?
When specified, determines the number of rows that the control will occupy.
TextFieldTypeTextFieldType
Text
Type of field for the text edit
Valuestring?
Value of the control.
Name: Autocomplete
Type: bool
Default: False
Description: Enables browser autocomplete for the text edit.
Name: ChildContent
Type: RenderFragment?
Description: Child content of the component
Name: ColumnName
Type: string
Description: Column logical name to bind the editor to from the table record.
Name: Description
Type: string?
Description: Description to be displayed in the tooltip.
Name: Disabled
Type: bool?
Description: Should the editor be disabled.
Name: DisplayLabelWhenAvailable
Type: bool
Default: True
Description: Specifies whether to display a lable if available.
Name: DisplayTooltipWhenAvailable
Type: bool
Default: True
Description: Specifies whether to display a tooltip if available.
Name: DisplayValidationErrorMessage
Type: bool
Default: True
Description: Should a validation error message be displayed when the component fails validation?
Name: IsVisible
Type: bool
Default: True
Description: Is the editor visible.
Name: Label
Type: string?
Description: Text to be displayed as a label for the editor.
Name: MaxLength
Type: int?
Description: Max length of the allowable string.
Name: MinLength
Type: int?
Description: Max length of the allowable string.
Name: ReadOnly
Type: bool?
Description: Should the editor be read-only.
Name: Required
Type: bool?
Description: Should the value be required.
Name: Rows
Type: int?
Description: When specified, determines the number of rows that the control will occupy.
Name: TextFieldType
Type: TextFieldType
Default: Text
Description: Type of field for the text edit
Name: Value
Type: string?
Description: Value of the control.

Events

Name
Type
Description
ValueChangedEventCallback<ColumnValueBase>
Gets or sets a callback that updates the bound value.
Name: ValueChanged
Type: EventCallback<ColumnValueBase>
Description: Gets or sets a callback that updates the bound value.

Methods

Name
Parameters
Type
Description
GetValidationErrorsList<string>
Returns a collection of the current validation errors.
Name: GetValidationErrors
Type: List<string>
Description: Returns a collection of the current validation errors.