Table of Contents

Class TextField

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

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

string

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 int

The maximum length to be set.

Returns

TextField

The current TextField instance.

SetMinLength(int)

Sets the minimum length of the input field

public TextField SetMinLength(int min)

Parameters

min int

The minimum length to be set.

Returns

TextField

The current TextField instance.