Skip to main content

Function: deriveColumns()

deriveColumns(__namedParameters): string[]

Defined in: core/table.ts:123

The column keys a table shows when the caller does not choose them: the item schema's properties in declaration order, scalar fields first, without sensitive fields. Falls back to the keys of the loaded records when the spec describes no item schema.

Parameters​

ParameterType
__namedParameters{ items?: JsonObject[]; itemSchema?: OpenApiSchema; maxColumns?: number; }
__namedParameters.items?JsonObject[]
__namedParameters.itemSchema?OpenApiSchema
__namedParameters.maxColumns?number

Returns​

string[]