Files
firecms/website/docs/api/interfaces/additionalcolumndelegate.md
2021-06-06 13:36:47 +02:00

1.7 KiB

id, title, sidebar_label, sidebar_position, custom_edit_url
id title sidebar_label sidebar_position custom_edit_url
additionalcolumndelegate Interface: AdditionalColumnDelegate<AdditionalKey, S, Key> AdditionalColumnDelegate 0 null

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
AdditionalKey AdditionalKey: string = string
S S: EntitySchema<Key> = EntitySchema<any>
Key Key: string = Extract<keyof S["properties"], string>

Properties

builder

builder: (entity: Entity<S, Key>) => ReactNode

Builder for the content of the cell for this column

Type declaration

▸ (entity): ReactNode

Parameters
Name Type
entity Entity<S, Key>
Returns

ReactNode

Defined in

models/models.ts:413


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

models/models.ts:398


title

title: string

Header of this column

Defined in

models/models.ts:403


width

Optional width: number

Width of the generated column in pixels

Defined in

models/models.ts:408