Interface: AdditionalColumnDelegate<M, AdditionalKey, UserType>
Use this interface for adding additional columns to entity collection views. If you need to do some async loading you can use AsyncPreviewComponent
Type parameters​
Name | Type |
---|---|
M | extends Object = any |
AdditionalKey | extends string = string |
UserType | User |
Properties​
dependencies​
• Optional
dependencies: Extract
<keyof M
, string
>[]
If this column needs to update dynamically based on other properties,
you can define an array of keys as strings with the
dependencies
prop.
e.g. ["name", "surname"]
If you don't specify this prop, the generated column will not rerender
on entity property updates.
Defined in​
id​
• id: AdditionalKey
Id of this column. You can use this id in the properties
field of the
collection in any order you want
Defined in​
title​
• title: string
Header of this column
Defined in​
width​
• Optional
width: number
Width of the generated column in pixels
Defined in​
Methods​
builder​
â–¸ builder(__namedParameters
): ReactNode
Builder for the content of the cell for this column
Parameters​
Name | Type |
---|---|
__namedParameters | Object |
__namedParameters.context | FireCMSContext <UserType > |
__namedParameters.entity | Entity <M > |
Returns​
ReactNode