Skip to content

utils/columnMappings ​

Overview ​

Default mappings from DRF serializer field types to list column adapter components. Mirrors fieldMappings.js (which maps types to form widgets). Resolved via the shared getTypeMapping helper, keyed typeSerializer -> typeModel.

Boolean types resolve to ColumnBoolean; date/time/datetime types resolve to ColumnDateTime; duration types resolve to ColumnDuration; JSON resolves to ColumnJson; file and image types resolve to ColumnFile; foreign-key relations resolve to ColumnModelLink. Any unmapped type falls back to ColumnText, reproducing the historical plain-text cell.

Properties ​

columnMappings ​

Type: object

Source: client/lib/utils/columnMappings.js:23

Methods ​

Types ​

ColumnMappingEntry ​

Source ​

client/lib/utils/columnMappings.js:1