Class EditorField
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
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
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
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
stringThe 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
intThe 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
objectThe modules of the editor field.
Returns
- EditorField
The instance of the EditorField class.