Class TextField
Represents a text field in Trinity Framework.
public class TextField : TrinityField<TextField, string?>, ITrinityComponent, ITrinityField, IFormComponent
- Inheritance
-
TextField
- Implements
- Inherited Members
Constructors
TextField(string)
public TextField(string columnName)
Parameters
columnName
string
Properties
ComponentName
The component name in the front-end side.
public override string ComponentName { get; }
Property Value
MaxLength
Gets or sets the maximum length of the input field.
public int? MaxLength { get; protected set; }
Property Value
- int?
MinLength
Gets or sets the minimum length of the input field.
public int? MinLength { get; protected set; }
Property Value
- int?
Methods
SetMaxLength(int)
Sets the maximum length of the input field
public TextField SetMaxLength(int max)
Parameters
max
intThe maximum length to be set.
Returns
SetMinLength(int)
Sets the minimum length of the input field
public TextField SetMinLength(int min)
Parameters
min
intThe minimum length to be set.