Skip to content

resolveColumnComponent

Overview

Resolve the adapter component for a single column, highest precedence first:

  1. propComponents[name] - the columnComponents prop on <ViewList>.
  2. configComponents[name] - modelConfig.config.columnComponents.
  3. type default from columnMappings.
  4. ColumnText fallback.

The consumer #field(<col>) slot (highest precedence overall) is handled in the ViewList template, not here.

Signature

resolveColumnComponent(field, propComponents, configComponents)

Parameters

NameTypeRequiredDescription
fieldFieldInfoyesThe column's field descriptor (carries name, typeSerializer, typeModel).
propComponentsobjectnoInline component overrides by field name.
configComponentsobjectnoModel-config component overrides by field name.

Returns

Component | () => Promise

The resolved adapter component.

Source

client/lib/utils/resolveColumnComponents.js:41

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2