Table of Contents

Class SectionSpec

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

A named group of edit-form rows (RowSpecs) forming one visual section, produced by DefineFields(IEntityInfo). Lists have no equivalent grouping level.

public sealed class SectionSpec : IGrouping<string, RowSpec>, IEnumerable<RowSpec>, IEnumerable
Inheritance
SectionSpec
Implements
Inherited Members

Constructors

SectionSpec(IGrouping<string, RowSpec>)

public SectionSpec(IGrouping<string, RowSpec> grouping)

Parameters

grouping IGrouping<string, RowSpec>

SectionSpec(string, IEnumerable<PropertyBinding>, IEnumerable<FieldSpec>)

public SectionSpec(string label, IEnumerable<PropertyBinding> bindings, IEnumerable<FieldSpec> fields)

Parameters

label string
bindings IEnumerable<PropertyBinding>
fields IEnumerable<FieldSpec>

SectionSpec(string, IEnumerable<RowSpec>, Type?)

public SectionSpec(string label, IEnumerable<RowSpec> fields, Type? headerComponent = null)

Parameters

label string
fields IEnumerable<RowSpec>
headerComponent Type

Properties

HeaderComponent

public Type? HeaderComponent { get; }

Property Value

Type

Key

Gets the key of the IGrouping<TKey, TElement>.

public string Key { get; }

Property Value

string

The key of the IGrouping<TKey, TElement>.

Methods

GetEnumerator()

Returns an enumerator that iterates through the collection.

public IEnumerator<RowSpec> GetEnumerator()

Returns

IEnumerator<RowSpec>

An enumerator that can be used to iterate through the collection.

GetHeaderContent(IEntity)

public RenderFragment? GetHeaderContent(IEntity entity)

Parameters

entity IEntity

Returns

RenderFragment

Rename(string)

public SectionSpec Rename(string label)

Parameters

label string

Returns

SectionSpec

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

WithHeaderComponent<TComponent>()

public SectionSpec WithHeaderComponent<TComponent>() where TComponent : ComponentBase, ISectionHeaderComponent

Returns

SectionSpec

Type Parameters

TComponent

WithRow(string, RowSpec)

[Obsolete("Label parameter does nothing. Use WithRow(PropertyBinding, FieldSpec)", false)]
public SectionSpec WithRow(string label, RowSpec newRow)

Parameters

label string
newRow RowSpec

Returns

SectionSpec

WithRow(PropertyBinding, FieldSpec)

public SectionSpec WithRow(PropertyBinding binding, FieldSpec spec)

Parameters

binding PropertyBinding
spec FieldSpec

Returns

SectionSpec

WithRow(RowSpec)

public SectionSpec WithRow(RowSpec newRow)

Parameters

newRow RowSpec

Returns

SectionSpec

WithoutRow(string)

public SectionSpec WithoutRow(string label)

Parameters

label string

Returns

SectionSpec