Table of Contents

Class SectionSpec

Namespace
The.Web.Entities
Assembly
Instagile.Web.Client.dll
public sealed class SectionSpec : IGrouping<string, SectionSpec.Row>, IEnumerable<SectionSpec.Row>, IEnumerable
Inheritance
SectionSpec
Implements
Inherited Members

Constructors

SectionSpec(IGrouping<string, Row>)

public SectionSpec(IGrouping<string, SectionSpec.Row> grouping)

Parameters

grouping IGrouping<string, SectionSpec.Row>

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<Row>, Type?)

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

Parameters

label string
fields IEnumerable<SectionSpec.Row>
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>.

Rows

public int Rows { get; }

Property Value

int

Methods

GetEnumerator()

Returns an enumerator that iterates through the collection.

public IEnumerator<SectionSpec.Row> GetEnumerator()

Returns

IEnumerator<SectionSpec.Row>

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, Row)

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

Parameters

label string
newRow SectionSpec.Row

Returns

SectionSpec

WithRow(PropertyBinding, FieldSpec)

public SectionSpec WithRow(PropertyBinding binding, FieldSpec spec)

Parameters

binding PropertyBinding
spec FieldSpec

Returns

SectionSpec

WithRow(Row)

public SectionSpec WithRow(SectionSpec.Row newRow)

Parameters

newRow SectionSpec.Row

Returns

SectionSpec

WithoutRow(string)

public SectionSpec WithoutRow(string label)

Parameters

label string

Returns

SectionSpec