Class CellSpec<T, U>
A CellSpec that renders the T property with the U cell component.
public class CellSpec<T, U> : CellSpec where T : IHasChanges where U : CellBase<T>
Type Parameters
TU
- Inheritance
-
CellSpec<T, U>
- Inherited Members
Constructors
CellSpec(string, int, HeaderSpec?, bool, bool, params RelationshipInfo[])
public CellSpec(string label, int order, HeaderSpec? header = null, bool isAdminOnly = false, bool isSummarised = true, params RelationshipInfo[] preloads)
Parameters
labelstringorderintheaderHeaderSpecisAdminOnlyboolisSummarisedboolpreloadsRelationshipInfo[]
CellSpec(string, int, HeaderSpec?, params RelationshipInfo[])
public CellSpec(string label, int order, HeaderSpec? header, params RelationshipInfo[] preloads)
Parameters
labelstringorderintheaderHeaderSpecpreloadsRelationshipInfo[]
CellSpec(string, int, HeaderSpec?, RelationshipInfo[], bool, bool)
protected CellSpec(string label, int order, HeaderSpec? header, RelationshipInfo[] preloads, bool isAdminOnly, bool isSummarised)
Parameters
labelstringorderintheaderHeaderSpecpreloadsRelationshipInfo[]isAdminOnlyboolisSummarisedbool
CellSpec(PropertyInfo, HeaderSpec?)
public CellSpec(PropertyInfo metadata, HeaderSpec? header = null)
Parameters
metadataPropertyInfoheaderHeaderSpec
Methods
Component<V>()
public virtual CellSpec<T, V> Component<V>() where V : CellBase<T>
Returns
- CellSpec<T, V>
Type Parameters
V
Hidden()
public CellSpec<T, U> Hidden()
Returns
- CellSpec<T, U>
HiddenIf(Func<IServices, bool>)
public CellSpec<T, U> HiddenIf(Func<IServices, bool> predicate)
Parameters
Returns
- CellSpec<T, U>
Rename(Func<IServices, string>)
public CellSpec<T, U> Rename(Func<IServices, string> getLabel)
Parameters
Returns
- CellSpec<T, U>
Rename(string)
public CellSpec<T, U> Rename(string label)
Parameters
labelstring
Returns
- CellSpec<T, U>
Reorder(Func<IServices, int>)
public CellSpec<T, U> Reorder(Func<IServices, int> getOrder)
Parameters
Returns
- CellSpec<T, U>
Reorder(int)
public CellSpec<T, U> Reorder(int order)
Parameters
orderint
Returns
- CellSpec<T, U>
Summarised(bool)
public CellSpec<T, U> Summarised(bool isSummarised = true)
Parameters
isSummarisedbool
Returns
- CellSpec<T, U>
Visible()
public CellSpec<T, U> Visible()
Returns
- CellSpec<T, U>
VisibleIf(Func<IServices, bool>)
public CellSpec<T, U> VisibleIf(Func<IServices, bool> predicate)
Parameters
Returns
- CellSpec<T, U>