Table of Contents

Class EditorField

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

Represents a field for editing content with additional options.

public class EditorField : TrinityField<EditorField, string?>, ITrinityComponent, ITrinityField, IFormComponent
Inheritance
EditorField
Implements
Inherited Members

Constructors

EditorField(string)

public EditorField(string columnName)

Parameters

columnName string

Properties

ComponentName

The component name in the front-end side.

public override string ComponentName { get; }

Property Value

string

HeaderButtons

Gets or sets the header buttons of the editor field.

public string[]? HeaderButtons { get; protected set; }

Property Value

string[]

Height

Gets or sets the height of the editor field.

public string Height { get; protected set; }

Property Value

string

MaxLength

Gets or sets the maximum length of the content of the editor field.

public int? MaxLength { get; protected set; }

Property Value

int?

Modules

Gets or sets the modules of the editor field.

public object? Modules { get; protected set; }

Property Value

object

Methods

SetHeaderButtons(params string[])

Sets the header buttons of the editor field and returns the instance of the EditorField class.

public EditorField SetHeaderButtons(params string[] headerButtonsClasses)

Parameters

headerButtonsClasses string[]

The classes of the header buttons.

Returns

EditorField

The instance of the EditorField class.

SetHeight(string)

Sets the height of the editor field and returns the instance of the EditorField class.

public EditorField SetHeight(string height)

Parameters

height string

The height of the editor field.

Returns

EditorField

The instance of the EditorField class.

SetMaxLength(int)

Sets the maximum length of the content of the editor field and returns the instance of the EditorField class.

public EditorField SetMaxLength(int maxLength)

Parameters

maxLength int

The maximum length of the content.

Returns

EditorField

The instance of the EditorField class.

SetModules(object)

Sets the modules of the editor field and returns the instance of the EditorField class.

public EditorField SetModules(object modules)

Parameters

modules object

The modules of the editor field.

Returns

EditorField

The instance of the EditorField class.