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.
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 | () => Promise
The resolved adapter component.
Source
client/lib/utils/resolveColumnComponents.js:41