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
IServiceProviderThe service provider.
isCreateRequest
boolTrue if the request is a create request, otherwise false.
isUpdateRequest
boolTrue if the request is an update request, otherwise false.
Returns
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.