Skip to main content

Type Alias: OpenApiTableColumn

OpenApiTableColumn = object

Defined in: table/useTableModel.ts:28

A column of OpenApiTable. Give only key to keep the default header and formatting; add header or render to take over either.

Properties​

align?​

optional align?: "left" | "right"

Defined in: table/useTableModel.ts:39

Horizontal alignment. Numbers align right by default.


optional header?: React.ReactNode

Defined in: table/useTableModel.ts:32

Header content. Defaults to the schema title, else the humanized key.


key​

key: string

Defined in: table/useTableModel.ts:30

Property of each record shown in this column.


render?​

optional render?: (args) => React.ReactNode

Defined in: table/useTableModel.ts:34

Custom cell content. Defaults to formatting driven by the field schema.

Parameters​

ParameterType
args{ item: JsonObject; value: JsonValue | undefined; }
args.itemJsonObject
args.valueJsonValue | undefined

Returns​

React.ReactNode