Class RowSpec
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
bindingPropertyBindingspecFieldSpecreadAccessRequiredIEntityInfo
Fields
Binding
public readonly PropertyBinding Binding
Field Value
ReadAccessRequired
public readonly IEntityInfo? ReadAccessRequired
Field Value
Spec
public readonly FieldSpec Spec
Field Value
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
contextFieldContext