Table of Contents

Class TextAreaField

Namespace
AbanoubNassem.Trinity.Fields
Assembly
AbanoubNassem.Trinity.dll

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

bool

Cols

Gets or sets the number of columns to display in the text area.

public int Cols { get; protected set; }

Property Value

int

ComponentName

The component name in the front-end side.

public override string ComponentName { get; }

Property Value

string

Rows

Gets or sets the number of rows to display in the text area.

public int Rows { get; protected set; }

Property Value

int

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 bool

A value indicating whether the text area should auto-resize based on the content.

rows int

The number of rows to display in the text area.

cols int

The number of columns to display in the text area.

Returns

TextAreaField

The current instance of the TextAreaField class.