Kaizen
Browse modulesData tabledatatable/sharedFunctions

Function: resolveColumnHeader()

function resolveColumnHeader(column: {
  header?: string;
  key: string | number | symbol;
}): string;

Defined in: shared/datatable/lib/format.ts:45

The label a column shows when the consumer supplied no header. Humanizing is the fallback only; an explicit header wins untouched.

Shared-lane because four surfaces read it — desktop header, Columns menu (meta.columnLabel), mobile card, CSV export — and CSV cannot reach a client-lane helper. One place is what keeps them from drifting apart.

Parameters

ParameterType
column{ header?: string; key: string | number | symbol; }
column.header?string
column.keystring | number | symbol

Returns

string

On this page