resolveColumnComponent
Overview
Resolve the adapter component for a single column, highest precedence first:
propComponents[name]- thecolumnComponentsprop on<ViewList>.configComponents[name]-modelConfig.config.columnComponents.- type default from
columnMappings. ColumnTextfallback, for a type with no mapping entry.
The prop entry is picked before the config entry is considered, as in the form override chain. An override that names no component throws, so a misconfigured column is reported instead of rendering a default.
The consumer #field(<col>) slot (highest precedence overall) is handled in the ViewList template, not here.
Signature
resolveColumnComponent(field, propComponents, configComponents)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| field | FieldInfo | yes | The column's field descriptor (carries name, typeSerializer, typeModel). |
| propComponents | object | no | Inline component overrides by field name. |
| configComponents | object | no | Model-config component overrides by field name. |
Returns
Component
The resolved adapter component.
Throws
- When the picked override, or the type mapping's
column, names no component.
Source
client/lib/utils/resolveColumnComponents.js:70