Class ColumnModel
The resolved, ready-to-render form of a ColumnSpec: a bound (per-row PropertyBinding
- IProperty component) or unbound (whole-row) render fragment, plus header, order, visibility, preloads and admin flag. Produced by CreateModel(IServices, PropertyBinding?) and consumed by the list views. The list-view analog of FieldModel - one model serves every row (its binding is applied per row), so there is no per-row cell model.
public sealed class ColumnModel
- Inheritance
-
ColumnModel
- Inherited Members
Constructors
ColumnModel(RenderFragment<IEntity>, string, int, PredicateResult, RenderFragment?, bool, bool, params RelationshipInfo[])
public ColumnModel(RenderFragment<IEntity> component, string label, int order, PredicateResult visibility, RenderFragment? header, bool isAdminOnly = false, bool isSummarised = true, params RelationshipInfo[] preloads)
Parameters
componentRenderFragment<IEntity>labelstringorderintvisibilityPredicateResultheaderRenderFragmentisAdminOnlyboolisSummarisedboolpreloadsRelationshipInfo[]
ColumnModel(PropertyBinding, RenderFragment<IProperty>, string, int, PredicateResult, RenderFragment?, bool, bool, params RelationshipInfo[])
public ColumnModel(PropertyBinding binding, RenderFragment<IProperty> component, string label, int order, PredicateResult visibility, RenderFragment? header, bool isAdminOnly = false, bool isSummarised = true, params RelationshipInfo[] preloads)
Parameters
bindingPropertyBindingcomponentRenderFragment<IProperty>labelstringorderintvisibilityPredicateResultheaderRenderFragmentisAdminOnlyboolisSummarisedboolpreloadsRelationshipInfo[]
Fields
Binding
public readonly PropertyBinding? Binding
Field Value
BoundComponent
public readonly RenderFragment<IProperty>? BoundComponent
Field Value
HeaderComponent
public readonly RenderFragment? HeaderComponent
Field Value
IsAdminOnly
If true, the column should not be displayed to or preloaded by non-admins.
public readonly bool IsAdminOnly
Field Value
IsSummarised
If true, the column appears in the condensed meta row of a low-density summary (EntitySummaryView). Defaults to true for attributes and reference relationships; false for collection relationships.
public readonly bool IsSummarised
Field Value
Label
Caption used in the column header if HeaderComponent is not set.
public readonly string Label
Field Value
Order
Sort key for column positioning.
public readonly int Order
Field Value
Preloads
Entity relationships which need to be loaded to render this column.
public readonly RelationshipInfo[] Preloads
Field Value
UnboundComponent
public readonly RenderFragment<IEntity>? UnboundComponent
Field Value
Visibility
3VL visibility decision for wrapping combinators (views should use IsVisible).
public readonly PredicateResult Visibility
Field Value
Properties
IsBound
[MemberNotNullWhen(true, "BoundComponent")]
[MemberNotNullWhen(true, "Binding")]
[MemberNotNullWhen(false, "UnboundComponent")]
public bool IsBound { get; }
Property Value
IsVisible
If false, the column should not be displayed.
public bool IsVisible { get; }