Table of Contents

Class RowSpec

Namespace
The.Web.Entities
Assembly
Instagile.Web.Client.dll

A single row of an edit form: a FieldSpec bound to a property, optionally gated behind read access to an entity type. The edit-view analog of ColumnSpec.

public class RowSpec
Inheritance
RowSpec
Inherited Members

Constructors

RowSpec(PropertyBinding, FieldSpec, IEntityInfo?)

public RowSpec(PropertyBinding binding, FieldSpec spec, IEntityInfo? readAccessRequired = null)

Parameters

binding PropertyBinding
spec FieldSpec
readAccessRequired IEntityInfo

Fields

Binding

public readonly PropertyBinding Binding

Field Value

PropertyBinding

ReadAccessRequired

public readonly IEntityInfo? ReadAccessRequired

Field Value

IEntityInfo

Spec

public readonly FieldSpec Spec

Field Value

FieldSpec

Methods

CreateModel(FieldContext)

Resolve this row into its FieldModel under context, carrying the row's ReadAccessRequired gate onto the model for the edit components to enforce. Mirrors CreateModel(IServices); a pass-through for now, since edit rows are always bound - there are no unbound field specs yet.

public FieldModel CreateModel(FieldContext context)

Parameters

context FieldContext

Returns

FieldModel