Skip to main content
Version: 2.0.0-alpha

Interface: AdditionalFieldDelegate<M, AdditionalKey, UserType>

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

NameType
Mextends Record<string, any> = any
AdditionalKeyextends string = string
UserTypeextends User = User

Properties

Builder

Optional Builder: ComponentType<AdditionalFieldDelegateProps<M, UserType>>

Builder for the content of the cell for this column

Defined in

lib/src/types/collections.ts:370


builder

Optional builder: ComponentType<AdditionalFieldDelegateProps<M, UserType>>

DEPRECATED: Use Builder instead Builder for the content of the cell for this column

Defined in

lib/src/types/collections.ts:365


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"] This is a performance optimization, if you don't define dependencies it will be updated in every render.

Defined in

lib/src/types/collections.ts:380


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

lib/src/types/collections.ts:349


name

name: string

Header of this column

Defined in

lib/src/types/collections.ts:354


width

Optional width: number

Width of the generated column in pixels

Defined in

lib/src/types/collections.ts:359

Need a hand?

We are happy to offer consulting services to help you get the most out of FireCMS.
Get in touch