id
Type:string
Required: Yes
Description:Unique identifier for the column.
type
Type:ColumnType
Required: Yes
Description:Defines the column type.
label
Type:string
Required: Yes
Description:Display name for the column.
suggestedMappingKeywords
Type:string[]
Required: No
Description:Keywords to assist in automatic mapping.
isReadOnly
Type:boolean
Required: No
Description:Indicates whether the column is editable.
validators
Type:ImporterValidatorDefinition[]
Required: No
Description:Array of validation rules.
transformers
Type:ImporterTransformerDefinition[]
Required: No
Description:Array of transformation rules.
customRender
Type:(value: ImporterOutputFieldType, displayValue: ImporterOutputFieldType) => ReactNode
Required: No
Description:Custom render function for the cell. The function gets passed
value
- the row value of the celldisplayValue
- the display value of the cell - that is a value that extracts enum labels and prevents empty values from being displayed. You should use this value to display the cell.
bg-hello-csv-danger-extra-light
- in case of validation errorsbg-hello-csv-muted
- in case of read only columns- default background colors - in other case