Class CellSpec
A CellSpecBase backed by a property: it renders the value supplied by the column's PropertyBinding, with rename/reorder/visibility combinators. The list-view analog of FieldSpec.
public class CellSpec : CellSpecBase
- Inheritance
-
CellSpec
- Derived
- Inherited Members
Constructors
CellSpec(RenderFragment<IProperty>, string, int, HeaderSpec?, bool, bool, params RelationshipInfo[])
protected CellSpec(RenderFragment<IProperty> buildRenderTree, string label, int order, HeaderSpec? header = null, bool isAdminOnly = false, bool isSummarised = true, params RelationshipInfo[] preloads)
Parameters
buildRenderTreeRenderFragment<IProperty>labelstringorderintheaderHeaderSpecisAdminOnlyboolisSummarisedboolpreloadsRelationshipInfo[]
CellSpec(RenderFragment<IProperty>, PropertyInfo, HeaderSpec?)
public CellSpec(RenderFragment<IProperty> buildRenderTree, PropertyInfo metadata, HeaderSpec? header = null)
Parameters
buildRenderTreeRenderFragment<IProperty>metadataPropertyInfoheaderHeaderSpec
Methods
CreateModel(IServices, PropertyBinding?)
public override ColumnModel CreateModel(IServices _, PropertyBinding? binding)
Parameters
_IServicesbindingPropertyBinding
Returns
Hidden()
public CellSpec Hidden()
Returns
HiddenIf(Func<IServices, bool>)
public CellSpec HiddenIf(Func<IServices, bool> predicate)
Parameters
Returns
Rename(Func<IServices, string>)
public CellSpec Rename(Func<IServices, string> getLabel)
Parameters
Returns
Rename(string)
public CellSpec Rename(string label)
Parameters
labelstring
Returns
Reorder(Func<IServices, int>)
public CellSpec Reorder(Func<IServices, int> getOrder)
Parameters
Returns
Reorder(int)
public CellSpec Reorder(int order)
Parameters
orderint
Returns
Summarised(bool)
public CellSpec Summarised(bool isSummarised = true)
Parameters
isSummarisedbool
Returns
Visible()
public CellSpec Visible()
Returns
VisibleIf(Func<IServices, bool>)
public CellSpec VisibleIf(Func<IServices, bool> predicate)