Table of Contents

Class TrinityForm

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

Represents a form component used to build and manage forms.

public class TrinityForm
Inheritance
TrinityForm
Inherited Members

Properties

Schema

Gets or sets the schema of the form.

public List<IFormComponent> Schema { get; }

Property Value

List<IFormComponent>

The schema of the form.

Methods

FilterSchema(IEnumerable<object>?, IServiceProvider, bool, bool)

Filters the schema of the form based on the create and update requests.

public static List<object> FilterSchema(IEnumerable<object>? schema, IServiceProvider serviceProvider, bool isCreateRequest = false, bool isUpdateRequest = false)

Parameters

schema IEnumerable<object>

The schema of the form to filter.

serviceProvider IServiceProvider

The service provider.

isCreateRequest bool

True if the request is a create request, otherwise false.

isUpdateRequest bool

True if the request is an update request, otherwise false.

Returns

List<object>

A filtered schema of the form.

SetSchema(List<IFormComponent>)

Sets the schema of the form.

public TrinityForm SetSchema(List<IFormComponent> schema)

Parameters

schema List<IFormComponent>

The schema of the form.

Returns

TrinityForm

The current instance of the TrinityForm class.