Table of Contents

Class TrinityWidget<T>

Namespace
AbanoubNassem.Trinity.Components.TrinityWidget
Assembly
AbanoubNassem.Trinity.dll

Represents an abstract class for a Trinity widget component.

public abstract class TrinityWidget<T> : TrinityComponent<T, object>, ITrinityWidget, ITrinityComponent where T : TrinityWidget<T>

Type Parameters

T

The type of the Trinity widget component.

Inheritance
TrinityWidget<T>
Implements
Derived
Inherited Members

Remarks

This class is used to define the base functionality of a Trinity widget component. It implements the ITrinityWidget interface and inherits from the TrinityComponent<T, TDeserialization> class.

Properties

Height

Gets or sets the height of the widget component.

public string? Height { get; protected set; }

Property Value

string

The height of the widget component.

Type

Used on the front-end side to determine what type is the component , is it (field, columns , etc).

public override string Type { get; }

Property Value

string

Methods

SetHeight(string)

Sets the height of the widget.

public T SetHeight(string height)

Parameters

height string

The height of the widget component.

Returns

T

The current instance of the T widget.