mirror of
https://github.com/zhigang1992/firecms.git
synced 2026-06-16 18:40:00 +08:00
1.7 KiB
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
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