Class SectionSpec
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
groupingIGrouping<string, SectionSpec.Row>
SectionSpec(string, IEnumerable<PropertyBinding>, IEnumerable<FieldSpec>)
public SectionSpec(string label, IEnumerable<PropertyBinding> bindings, IEnumerable<FieldSpec> fields)
Parameters
labelstringbindingsIEnumerable<PropertyBinding>fieldsIEnumerable<FieldSpec>
SectionSpec(string, IEnumerable<Row>, Type?)
public SectionSpec(string label, IEnumerable<SectionSpec.Row> fields, Type? headerComponent = null)
Parameters
labelstringfieldsIEnumerable<SectionSpec.Row>headerComponentType
Properties
HeaderComponent
public Type? HeaderComponent { get; }
Property Value
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
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
entityIEntity
Returns
Rename(string)
public SectionSpec Rename(string label)
Parameters
labelstring
Returns
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
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
labelstringnewRowSectionSpec.Row
Returns
WithRow(PropertyBinding, FieldSpec)
public SectionSpec WithRow(PropertyBinding binding, FieldSpec spec)
Parameters
bindingPropertyBindingspecFieldSpec
Returns
WithRow(Row)
public SectionSpec WithRow(SectionSpec.Row newRow)
Parameters
newRowSectionSpec.Row
Returns
WithoutRow(string)
public SectionSpec WithoutRow(string label)
Parameters
labelstring