Class TextAreaField
Represents a text area input field in Trinity.
public class TextAreaField : TrinityField<TextAreaField, string?>, ITrinityComponent, ITrinityField, IFormComponent
- Inheritance
-
TextAreaField
- Implements
- Inherited Members
Constructors
TextAreaField(string)
public TextAreaField(string columnName)
Parameters
columnName
string
Properties
AutoResize
Gets or sets a value indicating whether the text area should auto-resize based on the content.
public bool AutoResize { get; protected set; }
Property Value
Cols
Gets or sets the number of columns to display in the text area.
public int Cols { get; protected set; }
Property Value
ComponentName
The component name in the front-end side.
public override string ComponentName { get; }
Property Value
Rows
Gets or sets the number of rows to display in the text area.
public int Rows { get; protected set; }
Property Value
Methods
SetTextAreaProperties(bool, int, int)
Sets the properties of the text area.
public TextAreaField SetTextAreaProperties(bool autoResize = false, int rows = 5, int cols = 30)
Parameters
autoResize
boolA value indicating whether the text area should auto-resize based on the content.
rows
intThe number of rows to display in the text area.
cols
intThe number of columns to display in the text area.
Returns
- TextAreaField
The current instance of the TextAreaField class.