AdditionalFieldDelegate
@firecms/core / AdditionalFieldDelegate
Interface: AdditionalFieldDelegate<M, USER>
Section titled “Interface: AdditionalFieldDelegate<M, USER>”Defined in: types/collections.ts:485
Use this interface for adding additional fields to entity collection views. If you need to do some async loading you can use AsyncPreviewComponent
Type Parameters
Section titled “Type Parameters”M extends Record<string, any> = any
Properties
Section titled “Properties”Builder?
Section titled “Builder?”
optionalBuilder:ComponentType<AdditionalFieldDelegateProps<M,USER>>
Defined in: types/collections.ts:507
Builder for the content of the cell for this column
dependencies?
Section titled “dependencies?”
optionaldependencies:Extract<keyofM,string>[]
Defined in: types/collections.ts:517
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”]
This is a performance optimization, if you don’t define dependencies
it will be updated in every render.
key:
string
Defined in: types/collections.ts:492
ID of this column. You can use this id in the properties field of the
collection in any order you want
name:
string
Defined in: types/collections.ts:497
Header of this column
value()?
Section titled “value()?”
optionalvalue: (props) =>string|number|Promise<string|number> |undefined
Defined in: types/collections.ts:526
Use this prop to define the value of the column as a string or number.
This is the value that will be used for exporting the collection.
If Builder is defined, this prop will be ignored in the collection
view.
Parameters
Section titled “Parameters”context
Section titled “context”FireCMSContext<any>
entity
Section titled “entity”Entity<M>
Returns
Section titled “Returns”string | number | Promise<string | number> | undefined
width?
Section titled “width?”
optionalwidth:number
Defined in: types/collections.ts:502
Width of the generated column in pixels